From 69d473635bbfe23b1001d0b8443ed5dbd51ef6f0 Mon Sep 17 00:00:00 2001 From: rs Date: Mon, 29 Aug 2022 17:01:11 +0500 Subject: [PATCH] fix(telegram/updates): handle UpdateChannelParticipant as qts seq --- telegram/updates/classifier.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/telegram/updates/classifier.go b/telegram/updates/classifier.go index e0a9b04ddd..1f942ced97 100644 --- a/telegram/updates/classifier.go +++ b/telegram/updates/classifier.go @@ -39,6 +39,8 @@ func isCommonQtsUpdate(u tg.UpdateClass) (qts int, ok bool) { return u.Qts, true case *tg.UpdateBotStopped: return u.Qts, true + case *tg.UpdateChannelParticipant: + return u.Qts, true } return @@ -60,9 +62,6 @@ func isChannelPtsUpdate(u tg.UpdateClass) (channelID int64, pts, ptsCount int, o return u.ChannelID, u.Pts, u.PtsCount, true, nil case *tg.UpdatePinnedChannelMessages: return u.ChannelID, u.Pts, u.PtsCount, true, nil - case *tg.UpdateChannelParticipant: - // TODO: ptsCount 1? - return u.ChannelID, u.Qts, 0, true, nil } return