mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix catch_up may use None state
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user