mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Don't set self._state when checking if logged in
This essentially made catch_up useless after .start(). cc #1125 since this affects catch_up.
This commit is contained in:
parent
8884015dae
commit
1b703e905c
|
@ -141,7 +141,8 @@ class UserMethods(TelegramBaseClient):
|
|||
"""
|
||||
if self._authorized is None:
|
||||
try:
|
||||
self._state = await self(functions.updates.GetStateRequest())
|
||||
# Any request that requires authorization will work
|
||||
await self(functions.updates.GetStateRequest())
|
||||
self._authorized = True
|
||||
except errors.RPCError:
|
||||
self._authorized = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user