From 73fbfde7effb47690275623adc520a89281ec5eb 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