Add missing has_spoiler parameter to reply_{animation,photo,video}

This commit is contained in:
Jins Mathew 2023-02-11 12:08:29 +03:00 committed by GitHub
parent f040aefc9f
commit 2e82fcecff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -989,6 +989,7 @@ class Message(Object, Update):
caption: str = "", caption: str = "",
parse_mode: Optional["enums.ParseMode"] = None, parse_mode: Optional["enums.ParseMode"] = None,
caption_entities: List["types.MessageEntity"] = None, caption_entities: List["types.MessageEntity"] = None,
has_spoiler: bool = None,
duration: int = 0, duration: int = 0,
width: int = 0, width: int = 0,
height: int = 0, height: int = 0,
@ -1042,6 +1043,9 @@ class Message(Object, Update):
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`): 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*. 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 (``int``, *optional*):
Duration of sent animation in seconds. Duration of sent animation in seconds.
@ -1110,6 +1114,7 @@ class Message(Object, Update):
caption=caption, caption=caption,
parse_mode=parse_mode, parse_mode=parse_mode,
caption_entities=caption_entities, caption_entities=caption_entities,
has_spoiler=has_spoiler,
duration=duration, duration=duration,
width=width, width=width,
height=height, height=height,
@ -1886,6 +1891,7 @@ class Message(Object, Update):
caption: str = "", caption: str = "",
parse_mode: Optional["enums.ParseMode"] = None, parse_mode: Optional["enums.ParseMode"] = None,
caption_entities: List["types.MessageEntity"] = None, caption_entities: List["types.MessageEntity"] = None,
has_spoiler: bool = None,
ttl_seconds: int = None, ttl_seconds: int = None,
disable_notification: bool = None, disable_notification: bool = None,
reply_to_message_id: int = None, reply_to_message_id: int = None,
@ -1936,6 +1942,9 @@ class Message(Object, Update):
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`): 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*. 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*): ttl_seconds (``int``, *optional*):
Self-Destruct Timer. Self-Destruct Timer.
If you set a timer, the photo will self-destruct in *ttl_seconds* If you set a timer, the photo will self-destruct in *ttl_seconds*
@ -1994,6 +2003,7 @@ class Message(Object, Update):
caption=caption, caption=caption,
parse_mode=parse_mode, parse_mode=parse_mode,
caption_entities=caption_entities, caption_entities=caption_entities,
has_spoiler=has_spoiler,
ttl_seconds=ttl_seconds, ttl_seconds=ttl_seconds,
disable_notification=disable_notification, disable_notification=disable_notification,
reply_to_message_id=reply_to_message_id, reply_to_message_id=reply_to_message_id,
@ -2352,6 +2362,7 @@ class Message(Object, Update):
caption: str = "", caption: str = "",
parse_mode: Optional["enums.ParseMode"] = None, parse_mode: Optional["enums.ParseMode"] = None,
caption_entities: List["types.MessageEntity"] = None, caption_entities: List["types.MessageEntity"] = None,
has_spoiler: bool = None,
ttl_seconds: int = None, ttl_seconds: int = None,
duration: int = 0, duration: int = 0,
width: int = 0, width: int = 0,
@ -2407,6 +2418,9 @@ class Message(Object, Update):
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`): 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*. 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*): ttl_seconds (``int``, *optional*):
Self-Destruct Timer. Self-Destruct Timer.
If you set a timer, the video will self-destruct in *ttl_seconds* If you set a timer, the video will self-destruct in *ttl_seconds*
@ -2483,6 +2497,7 @@ class Message(Object, Update):
caption=caption, caption=caption,
parse_mode=parse_mode, parse_mode=parse_mode,
caption_entities=caption_entities, caption_entities=caption_entities,
has_spoiler=has_spoiler,
ttl_seconds=ttl_seconds, ttl_seconds=ttl_seconds,
duration=duration, duration=duration,
width=width, width=width,