diff --git a/telethon/tl/custom/message.py b/telethon/tl/custom/message.py index 8aa5bcb5..7460a487 100644 --- a/telethon/tl/custom/message.py +++ b/telethon/tl/custom/message.py @@ -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): """