Add a new .dice property to Message

This commit is contained in:
Lonami Exo 2020-04-27 20:42:50 +02:00
parent 202a8a171b
commit 71ed1564cb

View File

@ -552,6 +552,14 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
if isinstance(self.media, types.MessageMediaVenue):
return self.media
@property
def dice(self):
"""
The :tl:`MessageMediaDice` in this message, if it's a dice roll.
"""
if isinstance(self.media, types.MessageMediaDice):
return self.media
@property
def action_entities(self):
"""