From f4830c71d834b2ea52778aef94c30269e75a3549 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 12 Jan 2026 15:02:25 +0200 Subject: [PATCH] reactions: ignore channel reactions when polling --- pkg/connector/reactions.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/connector/reactions.go b/pkg/connector/reactions.go index 7b68fa95..46ee0046 100644 --- a/pkg/connector/reactions.go +++ b/pkg/connector/reactions.go @@ -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)