Make is_connected a property

This is consistent with the rest of is_ properties
This commit is contained in:
Lonami Exo
2022-02-16 11:24:20 +01:00
parent 483e2aadf1
commit 4258ce2bc8
6 changed files with 29 additions and 26 deletions

View File

@@ -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