mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-10 10:49:39 +00:00
Fix outdated LAYER usage in _create_exported_sender
This commit is contained in:
@@ -480,7 +480,7 @@ async def _create_exported_sender(self: 'TelegramClient', dc_id):
|
|||||||
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(_tl.fn.auth.ExportAuthorization(dc_id))
|
auth = await self(_tl.fn.auth.ExportAuthorization(dc_id))
|
||||||
self._init_request.query = _tl.fn.auth.ImportAuthorization(id=auth.id, bytes=auth.bytes)
|
self._init_request.query = _tl.fn.auth.ImportAuthorization(id=auth.id, bytes=auth.bytes)
|
||||||
req = _tl.fn.InvokeWithLayer(LAYER, self._init_request)
|
req = _tl.fn.InvokeWithLayer(_tl.LAYER, self._init_request)
|
||||||
await sender.send(req)
|
await sender.send(req)
|
||||||
return sender
|
return sender
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user