mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 10:45:52 +03:00
Fix _borrow_exported_sender connection
This commit is contained in:
parent
f51b56558d
commit
396ec908dd
|
@ -456,7 +456,10 @@ class TelegramBaseClient(abc.ABC):
|
||||||
sender.dc_id = dc_id
|
sender.dc_id = dc_id
|
||||||
elif not n:
|
elif not n:
|
||||||
dc = await self._get_dc(dc_id)
|
dc = await self._get_dc(dc_id)
|
||||||
await sender.connect(dc.ip_address, dc.port)
|
await sender.connect(self._connection(
|
||||||
|
dc.ip_address, dc.port,
|
||||||
|
loop=self._loop, proxy=self._proxy
|
||||||
|
))
|
||||||
|
|
||||||
self._borrowed_senders[dc_id] = (n + 1, sender)
|
self._borrowed_senders[dc_id] = (n + 1, sender)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user