Detect current MTProtoLayer automatically

This commit is contained in:
Lonami
2016-09-17 21:09:20 +02:00
parent 51a531225f
commit 6642f73a3d
5 changed files with 19 additions and 7 deletions

View File

@@ -27,11 +27,11 @@ def bytes_to_string(byte_count):
class InteractiveTelegramClient(TelegramClient):
def __init__(self, session_user_id, user_phone, layer, api_id, api_hash):
def __init__(self, session_user_id, user_phone, api_id, api_hash):
print_title('Initialization')
print('Initializing interactive example...')
super().__init__(session_user_id, layer, api_id, api_hash)
super().__init__(session_user_id, api_id, api_hash)
# Store all the found media in memory here,
# so it can be downloaded if the user wants