mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-12-01 22:03:46 +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):
|
if isinstance(self.media, types.MessageMediaVenue):
|
||||||
return self.media
|
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
|
@property
|
||||||
def action_entities(self):
|
def action_entities(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user