mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-24 14:06:41 +00:00
Fix update.pts may be None
This commit is contained in:
parent
e6981e7676
commit
ac5f8da50c
@ -188,7 +188,7 @@ class UpdateMethods(UserMethods):
|
|||||||
self._loop.create_task(self._dispatch_queue_updates())
|
self._loop.create_task(self._dispatch_queue_updates())
|
||||||
|
|
||||||
need_diff = False
|
need_diff = False
|
||||||
if hasattr(update, 'pts'):
|
if hasattr(update, 'pts') and update.pts is not None:
|
||||||
if self._state.pts and (update.pts - self._state.pts) > 1:
|
if self._state.pts and (update.pts - self._state.pts) > 1:
|
||||||
need_diff = True
|
need_diff = True
|
||||||
self._state.pts = update.pts
|
self._state.pts = update.pts
|
||||||
|
Loading…
Reference in New Issue
Block a user