mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix loading initial pts/date could be None (#1153)
This commit is contained in:
parent
6d83b16503
commit
0b6d766f0c
|
@ -311,7 +311,7 @@ class TelegramBaseClient(abc.ABC):
|
|||
# is lightweight and immutable we can easily copy them around to
|
||||
# each update in case they need to fetch missing entities.
|
||||
state = self.session.get_update_state(0)
|
||||
self._old_pts_date = state.pts, state.date
|
||||
self._old_pts_date = (state.pts, state.date) if state else (None, None)
|
||||
self._new_pts_date = (None, None)
|
||||
|
||||
# Some further state for subclasses
|
||||
|
|
Loading…
Reference in New Issue
Block a user