diff --git a/telethon/_updates/messagebox.py b/telethon/_updates/messagebox.py index cbb7a9cd..20b432fc 100644 --- a/telethon/_updates/messagebox.py +++ b/telethon/_updates/messagebox.py @@ -477,8 +477,8 @@ class MessageBox: pass else: # 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 = pts.pts - 1 + # `local_pts` must be the one before the server pts. + local_pts = pts.pts - pts.pts_count # For example, when we're in a channel, we immediately receive: # * ReadChannelInbox (pts = X)