mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
Added id property
To make obtaining the id of an incoming message easier.
This commit is contained in:
parent
6893359f9d
commit
fae051517b
|
@ -416,3 +416,10 @@ class NewMessage(EventBuilder):
|
|||
another session) or incoming (i.e. someone else sent it).
|
||||
"""
|
||||
return self.message.out
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
Returns the message integer ID.
|
||||
"""
|
||||
return self.message.id
|
||||
|
|
Loading…
Reference in New Issue
Block a user