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
b3e210a1fb
commit
3def9433b8
|
@ -111,8 +111,7 @@ class PtsInfo:
|
||||||
|
|
||||||
qts = getattr(update, 'qts', None)
|
qts = getattr(update, 'qts', None)
|
||||||
if qts:
|
if qts:
|
||||||
pts_count = 1 if isinstance(update, tl.UpdateNewEncryptedMessage) else 0
|
return cls(pts=qts, pts_count=1, entry=ENTRY_SECRET)
|
||||||
return cls(pts=qts, pts_count=pts_count, entry=ENTRY_SECRET)
|
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user