Added id property

To make obtaining the id of an incoming message easier.
This commit is contained in:
ferferga 2018-04-16 16:35:48 +02:00 committed by GitHub
parent 6893359f9d
commit fae051517b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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