mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix pts may be 0 with no workers set (#808)
This commit is contained in:
parent
b667bb0c1a
commit
fac6b2348b
|
@ -2436,7 +2436,7 @@ class TelegramClient(TelegramBareClient):
|
|||
|
||||
def catch_up(self):
|
||||
state = self.session.get_update_state(0)
|
||||
if not state:
|
||||
if not state or not state.pts:
|
||||
return
|
||||
|
||||
self.session.catching_up = True
|
||||
|
|
Loading…
Reference in New Issue
Block a user