mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Add chat_id-like convenience properties to the events
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user