mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Add a new .dice property to Message
This commit is contained in:
parent
202a8a171b
commit
71ed1564cb
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user