From 1b703e905cd2efb28290145f02aa4f5073699432 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 11 Mar 2019 09:04:08 +0100 Subject: [PATCH] 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. --- telethon/client/users.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon/client/users.py b/telethon/client/users.py index 2b0cc220..8fc4b141 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -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