mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
qts_count is always assumed to be 1
Per the docs https://core.telegram.org/api/updates: > events are never grouped, > so it's assumed that qts_count is always equal to 1.
This commit is contained in:
parent
b8d656efa5
commit
751b537fe1
|
@ -232,12 +232,12 @@ def pts_info_from_update(update: abcs.Update) -> Optional[PtsInfo]:
|
|||
elif isinstance(update, types.UpdatePinnedChannelMessages):
|
||||
return PtsInfo(update.channel_id, update.pts, update.pts_count)
|
||||
elif isinstance(update, types.UpdateChatParticipant):
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 0)
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 1)
|
||||
elif isinstance(update, types.UpdateChannelParticipant):
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 0)
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 1)
|
||||
elif isinstance(update, types.UpdateBotStopped):
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 0)
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 1)
|
||||
elif isinstance(update, types.UpdateBotChatInviteRequester):
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 0)
|
||||
return PtsInfo(ENTRY_SECRET, update.qts, 1)
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user