mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-02 20:54:43 +03:00
Fix login info did not persist
This commit is contained in:
parent
3f68510393
commit
85a9c13129
|
@ -320,7 +320,7 @@ async def connect(self: 'TelegramClient') -> None:
|
|||
return
|
||||
|
||||
if self._sender.auth_key.key != dc.auth:
|
||||
dc = dataclasses.replace(dc, auth=self._sender.auth_key.key)
|
||||
self._all_dcs[dc.id] = dc = dataclasses.replace(dc, auth=self._sender.auth_key.key)
|
||||
|
||||
# Need to send invokeWithLayer for things to work out.
|
||||
# Make the most out of this opportunity by also refreshing our state.
|
||||
|
|
Loading…
Reference in New Issue
Block a user