@@ -136,6 +136,9 @@ class Message(Object, Update):
136136 has_protected_content (``bool``, *optional*):
137137 True, if the message can't be forwarded.
138138
139+ has_media_spoiler (``bool``, *optional*):
140+ True, if the message media is covered by a spoiler animation.
141+
139142 text (``str``, *optional*):
140143 For text messages, the actual UTF-8 text of the message, 0-4096 characters.
141144 If the message contains entities (bold, italic, ...) you can access *text.markdown* or
@@ -332,6 +335,7 @@ def __init__(
332335 media_group_id : str = None ,
333336 author_signature : str = None ,
334337 has_protected_content : bool = None ,
338+ has_media_spoiler : bool = None ,
335339 text : Str = None ,
336340 entities : List ["types.MessageEntity" ] = None ,
337341 caption_entities : List ["types.MessageEntity" ] = None ,
@@ -408,6 +412,7 @@ def __init__(
408412 self .media_group_id = media_group_id
409413 self .author_signature = author_signature
410414 self .has_protected_content = has_protected_content
415+ self .has_media_spoiler = has_media_spoiler
411416 self .text = text
412417 self .entities = entities
413418 self .caption_entities = caption_entities
@@ -777,6 +782,7 @@ async def _parse(
777782 ),
778783 author_signature = message .post_author ,
779784 has_protected_content = message .noforwards ,
785+ has_media_spoiler = media and media .spoiler ,
780786 forward_from = forward_from ,
781787 forward_sender_name = forward_sender_name ,
782788 forward_from_chat = forward_from_chat ,
0 commit comments