mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 11:10:18 +03:00
Remove previous _init_with
reference.
This commit is contained in:
parent
56c5e19184
commit
f9e72d94af
|
@ -364,7 +364,7 @@ class TelegramBaseClient(abc.ABC):
|
||||||
lang_code=lang_code,
|
lang_code=lang_code,
|
||||||
system_lang_code=system_lang_code,
|
system_lang_code=system_lang_code,
|
||||||
lang_pack='', # "langPacks are for official apps only"
|
lang_pack='', # "langPacks are for official apps only"
|
||||||
query=functions.help.GetConfigRequest(),
|
query=None,
|
||||||
proxy=init_proxy
|
proxy=init_proxy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -526,6 +526,8 @@ class TelegramBaseClient(abc.ABC):
|
||||||
self.session.auth_key = self._sender.auth_key
|
self.session.auth_key = self._sender.auth_key
|
||||||
self.session.save()
|
self.session.save()
|
||||||
|
|
||||||
|
self._init_request.query = functions.help.GetConfigRequest()
|
||||||
|
|
||||||
await self._sender.send(functions.InvokeWithLayerRequest(
|
await self._sender.send(functions.InvokeWithLayerRequest(
|
||||||
LAYER, self._init_request
|
LAYER, self._init_request
|
||||||
))
|
))
|
||||||
|
@ -715,9 +717,8 @@ class TelegramBaseClient(abc.ABC):
|
||||||
))
|
))
|
||||||
self._log[__name__].info('Exporting auth for new borrowed sender in %s', dc)
|
self._log[__name__].info('Exporting auth for new borrowed sender in %s', dc)
|
||||||
auth = await self(functions.auth.ExportAuthorizationRequest(dc_id))
|
auth = await self(functions.auth.ExportAuthorizationRequest(dc_id))
|
||||||
req = self._init_with(functions.auth.ImportAuthorizationRequest(
|
self._init_request.query = functions.auth.ImportAuthorizationRequest(id=auth.id, bytes=auth.bytes)
|
||||||
id=auth.id, bytes=auth.bytes
|
req = functions.InvokeWithLayerRequest(LAYER, self._init_request)
|
||||||
))
|
|
||||||
await sender.send(req)
|
await sender.send(req)
|
||||||
return sender
|
return sender
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user