Skip to content

Commit 2e82fce

Browse files
Add missing has_spoiler parameter to reply_{animation,photo,video}
1 parent f040aef commit 2e82fce

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pyrogram/types/messages_and_media/message.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,7 @@ async def reply_animation(
989989
caption: str = "",
990990
parse_mode: Optional["enums.ParseMode"] = None,
991991
caption_entities: List["types.MessageEntity"] = None,
992+
has_spoiler: bool = None,
992993
duration: int = 0,
993994
width: int = 0,
994995
height: int = 0,
@@ -1042,6 +1043,9 @@ async def reply_animation(
10421043
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
10431044
List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
10441045
1046+
has_spoiler (``bool``, *optional*):
1047+
Pass True if the animation needs to be covered with a spoiler animation.
1048+
10451049
duration (``int``, *optional*):
10461050
Duration of sent animation in seconds.
10471051
@@ -1110,6 +1114,7 @@ async def reply_animation(
11101114
caption=caption,
11111115
parse_mode=parse_mode,
11121116
caption_entities=caption_entities,
1117+
has_spoiler=has_spoiler,
11131118
duration=duration,
11141119
width=width,
11151120
height=height,
@@ -1886,6 +1891,7 @@ async def reply_photo(
18861891
caption: str = "",
18871892
parse_mode: Optional["enums.ParseMode"] = None,
18881893
caption_entities: List["types.MessageEntity"] = None,
1894+
has_spoiler: bool = None,
18891895
ttl_seconds: int = None,
18901896
disable_notification: bool = None,
18911897
reply_to_message_id: int = None,
@@ -1936,6 +1942,9 @@ async def reply_photo(
19361942
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
19371943
List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
19381944
1945+
has_spoiler (``bool``, *optional*):
1946+
Pass True if the photo needs to be covered with a spoiler animation.
1947+
19391948
ttl_seconds (``int``, *optional*):
19401949
Self-Destruct Timer.
19411950
If you set a timer, the photo will self-destruct in *ttl_seconds*
@@ -1994,6 +2003,7 @@ async def reply_photo(
19942003
caption=caption,
19952004
parse_mode=parse_mode,
19962005
caption_entities=caption_entities,
2006+
has_spoiler=has_spoiler,
19972007
ttl_seconds=ttl_seconds,
19982008
disable_notification=disable_notification,
19992009
reply_to_message_id=reply_to_message_id,
@@ -2352,6 +2362,7 @@ async def reply_video(
23522362
caption: str = "",
23532363
parse_mode: Optional["enums.ParseMode"] = None,
23542364
caption_entities: List["types.MessageEntity"] = None,
2365+
has_spoiler: bool = None,
23552366
ttl_seconds: int = None,
23562367
duration: int = 0,
23572368
width: int = 0,
@@ -2407,6 +2418,9 @@ async def reply_video(
24072418
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
24082419
List of special entities that appear in the caption, which can be specified instead of *parse_mode*.
24092420
2421+
has_spoiler (``bool``, *optional*):
2422+
Pass True if the video needs to be covered with a spoiler animation.
2423+
24102424
ttl_seconds (``int``, *optional*):
24112425
Self-Destruct Timer.
24122426
If you set a timer, the video will self-destruct in *ttl_seconds*
@@ -2483,6 +2497,7 @@ async def reply_video(
24832497
caption=caption,
24842498
parse_mode=parse_mode,
24852499
caption_entities=caption_entities,
2500+
has_spoiler=has_spoiler,
24862501
ttl_seconds=ttl_seconds,
24872502
duration=duration,
24882503
width=width,

0 commit comments

Comments
 (0)