From 9a77cc27fec3e7e405e74bc9889e7caba32a11cb Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Sat, 30 Dec 2023 14:06:39 +0300 Subject: [PATCH] Add invert_media parameter to send_message method --- pyrogram/methods/messages/send_message.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyrogram/methods/messages/send_message.py b/pyrogram/methods/messages/send_message.py index 3a57be99..ccef39d4 100644 --- a/pyrogram/methods/messages/send_message.py +++ b/pyrogram/methods/messages/send_message.py @@ -34,6 +34,7 @@ class SendMessage: disable_web_page_preview: bool = None, disable_notification: bool = None, message_thread_id: int = None, + invert_media: bool = None, reply_to_message_id: int = None, reply_to_chat_id: Union[int, str] = None, reply_to_story_id: int = None, @@ -80,6 +81,9 @@ class SendMessage: Unique identifier for the target message thread (topic) of the forum. For supergroups only. + invert_media (``bool``, *optional*): + Invert media. + reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. @@ -156,6 +160,7 @@ class SendMessage: peer=peer, no_webpage=disable_web_page_preview or None, silent=disable_notification or None, + invert_media=invert_media or None, reply_to=utils.get_reply_to( reply_to_message_id=reply_to_message_id, message_thread_id=message_thread_id,