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

@@ -101,6 +101,10 @@ class CallbackQuery(EventBuilder):
self._message = None
self._answered = False
def _load_entities(self):
self._sender, self._input_sender = self._get_entity_pair(self.sender_id)
return super()._load_entities() and self._input_sender is not None
@property
def id(self):
"""