From 1a2fd67ee9d6227653f2e97ec1f73bdb788fa29a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 12 Dec 2025 17:26:41 +0200 Subject: [PATCH] gotd: remove extra wrapping in check participant error --- pkg/gotd/telegram/updates/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gotd/telegram/updates/manager.go b/pkg/gotd/telegram/updates/manager.go index 7140af9c..3b637f59 100644 --- a/pkg/gotd/telegram/updates/manager.go +++ b/pkg/gotd/telegram/updates/manager.go @@ -155,14 +155,14 @@ func (m *Manager) Run(ctx context.Context, api API, userID int64, opt AuthOption } else if !found { return nil } else if isMember, err := m.checkParticipant(ctx, api, userID, channelID, hash); err != nil { - return fmt.Errorf("failed to check if user is participant of channel %d: %w", channelID, err) + return fmt.Errorf("failed to check if user is participant: %w", err) } else if !isMember { return nil } channels[channelID] = PtsAccessHashTuple{Pts: pts, AccessHash: hash} return nil }); err != nil { - return errors.Wrap(err, "iterate channels") + return err } diffLim := diffLimitUser