mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Make is_connected a property
This is consistent with the rest of is_ properties
This commit is contained in:
@@ -71,7 +71,7 @@ def start(
|
||||
async def _start(
|
||||
self: 'TelegramClient', phone, password, bot_token,
|
||||
code_callback, first_name, last_name, max_attempts):
|
||||
if not self.is_connected():
|
||||
if not self.is_connected:
|
||||
await self.connect()
|
||||
|
||||
# Rather than using `is_user_authorized`, use `get_me`. While this is
|
||||
|
Reference in New Issue
Block a user