mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Add missing has_spoiler parameter to reply_{animation,photo,video}
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
cb60c6ae8d
commit
cb7ba4f821
1 changed files with 15 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue