mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
Pyrofork: add missing has_spoiler parameter to copy_message method #21
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
b08ae687b9
commit
c0ca286c04
1 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ class CopyMessage:
|
|||
caption: str = None,
|
||||
parse_mode: Optional["enums.ParseMode"] = None,
|
||||
caption_entities: List["types.MessageEntity"] = None,
|
||||
has_spoiler: bool = None,
|
||||
disable_notification: bool = None,
|
||||
message_thread_id: int = None,
|
||||
reply_to_message_id: int = None,
|
||||
|
|
@ -81,6 +82,9 @@ class CopyMessage:
|
|||
caption_entities (List of :obj:`~pyrogram.types.MessageEntity`):
|
||||
List of special entities that appear in the new 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.
|
||||
|
||||
disable_notification (``bool``, *optional*):
|
||||
Sends the message silently.
|
||||
Users will receive a notification with no sound.
|
||||
|
|
@ -119,6 +123,7 @@ class CopyMessage:
|
|||
caption=caption,
|
||||
parse_mode=parse_mode,
|
||||
caption_entities=caption_entities,
|
||||
has_spoiler=has_spoiler,
|
||||
disable_notification=disable_notification,
|
||||
message_thread_id=message_thread_id,
|
||||
reply_to_message_id=reply_to_message_id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue