mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Add missing has_spoiler parameter to reply_{animation,photo,video}
This commit is contained in:
parent
f040aefc9f
commit
2e82fcecff
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user