mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
Merge ed091422b2
into bd1b0ecdb4
This commit is contained in:
commit
f64ec86c80
|
@ -297,7 +297,14 @@ class TelegramClient(TelegramBareClient):
|
||||||
'must only provide one of either')
|
'must only provide one of either')
|
||||||
|
|
||||||
if not self.is_connected():
|
if not self.is_connected():
|
||||||
self.connect()
|
connected = self.connect()
|
||||||
|
while connected is not True:
|
||||||
|
print("Couldn't establish a connection to Telegram's servers. Check your connection. Trying again...")
|
||||||
|
connected2 = self.connect()
|
||||||
|
if connected2 is True:
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
if self.is_user_authorized():
|
if self.is_user_authorized():
|
||||||
self._check_events_pending_resolve()
|
self._check_events_pending_resolve()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user