mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Implement _load_entities for all events
Follow-up of c902428af1
This means that now input_chat (and even chat_id) and
similar can be safely used, without needing get_input
This commit is contained in:
@@ -49,7 +49,7 @@ class ChatGetter(abc.ABC):
|
||||
"""
|
||||
if self._input_chat is None and self._chat_peer:
|
||||
try:
|
||||
self._input_chat = self._client._entity_cache(self._chat_peer)
|
||||
self._input_chat = self._client._entity_cache[self._chat_peer]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user