From 77c558e2c0e7fecd4c8001a9a782990b0d6c68c5 Mon Sep 17 00:00:00 2001 From: Andrey Egorov Date: Sat, 23 Sep 2017 00:12:36 +0300 Subject: [PATCH] Process messages without pts --- telethon/update_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/update_state.py b/telethon/update_state.py index 8c160184..e92dac1f 100644 --- a/telethon/update_state.py +++ b/telethon/update_state.py @@ -78,7 +78,7 @@ class UpdateState: return # Nothing else to be done pts = getattr(update, 'pts', self._state.pts) - if pts <= self._state.pts: + if hasattr(update, 'pts') and pts <= self._state.pts: return # We already handled this update self._state.pts = pts