mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-24 22:16:40 +00:00
Better initialization pts for new channels
This commit is contained in:
parent
f50b2f5d61
commit
9dbf3443d0
@ -477,8 +477,8 @@ class MessageBox:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# No previous `pts` known, and because this update has to be "right" (it's the first one) our
|
# No previous `pts` known, and because this update has to be "right" (it's the first one) our
|
||||||
# `local_pts` must be one less.
|
# `local_pts` must be the one before the server pts.
|
||||||
local_pts = pts.pts - 1
|
local_pts = pts.pts - pts.pts_count
|
||||||
|
|
||||||
# For example, when we're in a channel, we immediately receive:
|
# For example, when we're in a channel, we immediately receive:
|
||||||
# * ReadChannelInbox (pts = X)
|
# * ReadChannelInbox (pts = X)
|
||||||
|
Loading…
Reference in New Issue
Block a user