diff --git a/pkg/gotd/telegram/updates/state_channel.go b/pkg/gotd/telegram/updates/state_channel.go index 989b58ca..e2fab62a 100644 --- a/pkg/gotd/telegram/updates/state_channel.go +++ b/pkg/gotd/telegram/updates/state_channel.go @@ -98,7 +98,7 @@ func (s *channelState) Push(ctx context.Context, u channelUpdate) error { case <-ctx.Done(): return ctx.Err() case <-s.runCtx.Done(): - return s.runCtx.Err() + return nil case s.updates <- u: return nil }