mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Save self user ID in session file
Should result in one less request after connecting, as there is no longer a need to fetch the self user.
This commit is contained in:
@@ -9,7 +9,7 @@ class EntityCache:
|
||||
self,
|
||||
hash_map: dict = _sentinel,
|
||||
self_id: int = None,
|
||||
self_bot: bool = False
|
||||
self_bot: bool = None
|
||||
):
|
||||
self.hash_map = {} if hash_map is _sentinel else hash_map
|
||||
self.self_id = self_id
|
||||
|
Reference in New Issue
Block a user