From 2e82fcecff01dee0df2969135a96c317a39a1894 Mon Sep 17 00:00:00 2001 From: Jins Mathew <68688737+jinspalakkattu@users.noreply.github.com> Date: Sat, 11 Feb 2023 12:08:29 +0300 Subject: [PATCH] Add missing has_spoiler parameter to reply_{animation,photo,video} --- pyrogram/types/messages_and_media/message.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 1835f632..62a85b75 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -989,6 +989,7 @@ class Message(Object, Update): caption: str = "", parse_mode: Optional["enums.ParseMode"] = None, caption_entities: List["types.MessageEntity"] = None, + has_spoiler: bool = None, duration: int = 0, width: int = 0, height: int = 0, @@ -1042,6 +1043,9 @@ class Message(Object, Update): caption_entities (List of :obj:`~pyrogram.types.MessageEntity`): List of special entities that appear in the caption, which can be specified instead of *parse_mode*. + has_spoiler (``bool``, *optional*): + Pass True if the animation needs to be covered with a spoiler animation. + duration (``int``, *optional*): Duration of sent animation in seconds. @@ -1110,6 +1114,7 @@ class Message(Object, Update): caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, + has_spoiler=has_spoiler, duration=duration, width=width, height=height, @@ -1886,6 +1891,7 @@ class Message(Object, Update): caption: str = "", parse_mode: Optional["enums.ParseMode"] = None, caption_entities: List["types.MessageEntity"] = None, + has_spoiler: bool = None, ttl_seconds: int = None, disable_notification: bool = None, reply_to_message_id: int = None, @@ -1936,6 +1942,9 @@ class Message(Object, Update): caption_entities (List of :obj:`~pyrogram.types.MessageEntity`): List of special entities that appear in the caption, which can be specified instead of *parse_mode*. + has_spoiler (``bool``, *optional*): + Pass True if the photo needs to be covered with a spoiler animation. + ttl_seconds (``int``, *optional*): Self-Destruct Timer. If you set a timer, the photo will self-destruct in *ttl_seconds* @@ -1994,6 +2003,7 @@ class Message(Object, Update): caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, + has_spoiler=has_spoiler, ttl_seconds=ttl_seconds, disable_notification=disable_notification, reply_to_message_id=reply_to_message_id, @@ -2352,6 +2362,7 @@ class Message(Object, Update): caption: str = "", parse_mode: Optional["enums.ParseMode"] = None, caption_entities: List["types.MessageEntity"] = None, + has_spoiler: bool = None, ttl_seconds: int = None, duration: int = 0, width: int = 0, @@ -2407,6 +2418,9 @@ class Message(Object, Update): caption_entities (List of :obj:`~pyrogram.types.MessageEntity`): List of special entities that appear in the caption, which can be specified instead of *parse_mode*. + has_spoiler (``bool``, *optional*): + Pass True if the video needs to be covered with a spoiler animation. + ttl_seconds (``int``, *optional*): Self-Destruct Timer. If you set a timer, the video will self-destruct in *ttl_seconds* @@ -2483,6 +2497,7 @@ class Message(Object, Update): caption=caption, parse_mode=parse_mode, caption_entities=caption_entities, + has_spoiler=has_spoiler, ttl_seconds=ttl_seconds, duration=duration, width=width,