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:
Lonami Exo
2019-03-28 10:47:15 +01:00
parent 5554b414e1
commit 39d9531483
7 changed files with 40 additions and 12 deletions

View File

@@ -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