Remove self input user and bot cache from client

The session_state cache can be used instead.
This does put get_me with input_peer at a disadvantage, but I expect
this is not used all that often, since 'me' does just fine.
This commit is contained in:
Lonami Exo
2021-09-19 18:16:12 +02:00
parent cc3d4145d8
commit 3b1660669e
5 changed files with 6 additions and 47 deletions

View File

@@ -377,8 +377,6 @@ async def log_out(self: 'TelegramClient') -> bool:
except errors.RPCError:
return False
self._bot = None
self._self_input_peer = None
self._authorized = False
self._state_cache.reset()