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:
Lonami Exo 2024-06-04 23:12:02 +02:00
parent b3e210a1fb
commit 3def9433b8

View File

@ -111,8 +111,7 @@ class PtsInfo:
qts = getattr(update, 'qts', None)
if qts:
pts_count = 1 if isinstance(update, tl.UpdateNewEncryptedMessage) else 0
return cls(pts=qts, pts_count=pts_count, entry=ENTRY_SECRET)
return cls(pts=qts, pts_count=1, entry=ENTRY_SECRET)
return None