mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Remove initial_query leftovers
This commit is contained in:
parent
b14a7d9e68
commit
2f0f6d4591
|
@ -158,8 +158,7 @@ class TelegramBareClient:
|
||||||
# This is fine, probably layer migration
|
# This is fine, probably layer migration
|
||||||
self._logger.debug('Found invalid item, probably migrating', e)
|
self._logger.debug('Found invalid item, probably migrating', e)
|
||||||
self.disconnect()
|
self.disconnect()
|
||||||
return self.connect(exported_auth=exported_auth,
|
return self.connect(exported_auth=exported_auth)
|
||||||
initial_query=initial_query)
|
|
||||||
|
|
||||||
except (RPCError, ConnectionError) as error:
|
except (RPCError, ConnectionError) as error:
|
||||||
# Probably errors from the previous session, ignore them
|
# Probably errors from the previous session, ignore them
|
||||||
|
@ -167,7 +166,7 @@ class TelegramBareClient:
|
||||||
self._logger.debug(
|
self._logger.debug(
|
||||||
'Could not stabilise initial connection: {}'.format(error)
|
'Could not stabilise initial connection: {}'.format(error)
|
||||||
)
|
)
|
||||||
return None if initial_query else False
|
return False
|
||||||
|
|
||||||
def _init_connection(self, query=None):
|
def _init_connection(self, query=None):
|
||||||
result = self(InvokeWithLayerRequest(LAYER, InitConnectionRequest(
|
result = self(InvokeWithLayerRequest(LAYER, InitConnectionRequest(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user