reactions: ignore channel reactions when polling

This commit is contained in:
Tulir Asokan
2026-01-12 15:02:25 +02:00
parent 78ba8e4d45
commit f4830c71d8

View File

@@ -290,7 +290,9 @@ func (t *TelegramClient) pollForReactions(ctx context.Context, portalKey network
for _, reaction := range reactionsList {
peer, ok := reaction.PeerID.(*tg.PeerUser)
if !ok {
return fmt.Errorf("unknown peer type %T", reaction.PeerID)
// TODO handle channel peers
log.Debug().Type("peer_type", reaction.PeerID).Msg("Ignoring reaction from non-user peer")
continue
}
userID := ids.MakeUserID(peer.UserID)
reactionLimit, err := t.getReactionLimit(ctx, userID)