mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-05 06:03:30 +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:
|
if not self.session.auth_key:
|
||||||
__log__.info('Need to generate new auth key before invoking')
|
__log__.info('Need to generate new auth key before invoking')
|
||||||
|
self._first_request = True
|
||||||
self.session.auth_key, self.session.time_offset = \
|
self.session.auth_key, self.session.time_offset = \
|
||||||
authenticator.do_authentication(self._sender.connection)
|
authenticator.do_authentication(self._sender.connection)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user