mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Fix catch_up may use None state
This commit is contained in:
parent
89182ea010
commit
a8be4bb615
|
@ -2427,6 +2427,9 @@ class TelegramClient(TelegramBareClient):
|
|||
|
||||
def catch_up(self):
|
||||
state = self.session.get_update_state(0)
|
||||
if not state:
|
||||
return
|
||||
|
||||
self.session.catching_up = True
|
||||
try:
|
||||
while True:
|
||||
|
|
Loading…
Reference in New Issue
Block a user