From 2f0f6d45919928230fb5340890a3629cc9a04d5d Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 17 Sep 2017 16:20:04 +0200 Subject: [PATCH] Remove initial_query leftovers --- telethon/telegram_bare_client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py index cb78942f..44951c7c 100644 --- a/telethon/telegram_bare_client.py +++ b/telethon/telegram_bare_client.py @@ -158,8 +158,7 @@ class TelegramBareClient: # This is fine, probably layer migration self._logger.debug('Found invalid item, probably migrating', e) self.disconnect() - return self.connect(exported_auth=exported_auth, - initial_query=initial_query) + return self.connect(exported_auth=exported_auth) except (RPCError, ConnectionError) as error: # Probably errors from the previous session, ignore them @@ -167,7 +166,7 @@ class TelegramBareClient: self._logger.debug( 'Could not stabilise initial connection: {}'.format(error) ) - return None if initial_query else False + return False def _init_connection(self, query=None): result = self(InvokeWithLayerRequest(LAYER, InitConnectionRequest(