mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Implement a mechanism to notify of connection failures (#852)
This commit is contained in:
@@ -218,6 +218,14 @@ class TelegramBaseClient(abc.ABC):
|
||||
def loop(self):
|
||||
return self._loop
|
||||
|
||||
@property
|
||||
def disconnected(self):
|
||||
"""
|
||||
Future that resolves when the connection to Telegram
|
||||
ends, either by user action or in the background.
|
||||
"""
|
||||
return self._sender.disconnected
|
||||
|
||||
# endregion
|
||||
|
||||
# region Connecting
|
||||
|
Reference in New Issue
Block a user