mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Assert ._first_request is True with None auth_key (#517)
This commit is contained in:
parent
4fba27dee9
commit
b45b63d71d
|
@ -507,6 +507,7 @@ class TelegramBareClient:
|
|||
|
||||
if not self.session.auth_key:
|
||||
__log__.info('Need to generate new auth key before invoking')
|
||||
self._first_request = True
|
||||
self.session.auth_key, self.session.time_offset = \
|
||||
authenticator.do_authentication(self._sender.connection)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user