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

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
Jins Mathew 2023-02-11 12:08:29 +03:00 committed by wulan17
parent cb60c6ae8d
commit cb7ba4f821
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -1115,6 +1115,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,
@ -1168,6 +1169,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.
@ -1236,6 +1240,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,
@ -2014,6 +2019,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,
@ -2064,6 +2070,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*
@ -2122,6 +2131,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,
@ -2480,6 +2490,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,
@ -2535,6 +2546,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*
@ -2611,6 +2625,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,