mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-10 16:12:22 +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):
|
def catch_up(self):
|
||||||
state = self.session.get_update_state(0)
|
state = self.session.get_update_state(0)
|
||||||
|
if not state:
|
||||||
|
return
|
||||||
|
|
||||||
self.session.catching_up = True
|
self.session.catching_up = True
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user