mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-18 04:20:57 +03:00
Fix outdated LAYER usage in _create_exported_sender
This commit is contained in:
parent
684f640b60
commit
29d3c3fd7c
|
@ -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)
|
||||
auth = await self(_tl.fn.auth.ExportAuthorization(dc_id))
|
||||
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)
|
||||
return sender
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user