Add chat_id-like convenience properties to the events

This commit is contained in:
Lonami Exo
2018-04-08 14:22:11 +02:00
parent 259bb6ace1
commit 93b5909be5
4 changed files with 43 additions and 1 deletions

View File

@@ -151,3 +151,13 @@ class UserUpdate(EventBuilder):
def user(self):
"""Alias around the chat (conversation)."""
return self.chat
@property
def input_user(self):
"""Alias around the input chat."""
return self.input_chat
@property
def user_id(self):
"""Alias around `chat_id`."""
return self.chat_id