Assert ._first_request is True with None auth_key (#517)

This commit is contained in:
Lonami Exo 2018-01-04 21:07:29 +01:00
parent 4fba27dee9
commit b45b63d71d

View File

@ -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)