mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix login info did not persist
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user