mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-24 15:59:18 +00:00
Add invert_media parameter to send_message method
This commit is contained in:
parent
5e5860534b
commit
9a77cc27fe
@ -34,6 +34,7 @@ class SendMessage:
|
|||||||
disable_web_page_preview: bool = None,
|
disable_web_page_preview: bool = None,
|
||||||
disable_notification: bool = None,
|
disable_notification: bool = None,
|
||||||
message_thread_id: int = None,
|
message_thread_id: int = None,
|
||||||
|
invert_media: bool = None,
|
||||||
reply_to_message_id: int = None,
|
reply_to_message_id: int = None,
|
||||||
reply_to_chat_id: Union[int, str] = None,
|
reply_to_chat_id: Union[int, str] = None,
|
||||||
reply_to_story_id: int = None,
|
reply_to_story_id: int = None,
|
||||||
@ -80,6 +81,9 @@ class SendMessage:
|
|||||||
Unique identifier for the target message thread (topic) of the forum.
|
Unique identifier for the target message thread (topic) of the forum.
|
||||||
For supergroups only.
|
For supergroups only.
|
||||||
|
|
||||||
|
invert_media (``bool``, *optional*):
|
||||||
|
Invert media.
|
||||||
|
|
||||||
reply_to_message_id (``int``, *optional*):
|
reply_to_message_id (``int``, *optional*):
|
||||||
If the message is a reply, ID of the original message.
|
If the message is a reply, ID of the original message.
|
||||||
|
|
||||||
@ -156,6 +160,7 @@ class SendMessage:
|
|||||||
peer=peer,
|
peer=peer,
|
||||||
no_webpage=disable_web_page_preview or None,
|
no_webpage=disable_web_page_preview or None,
|
||||||
silent=disable_notification or None,
|
silent=disable_notification or None,
|
||||||
|
invert_media=invert_media or None,
|
||||||
reply_to=utils.get_reply_to(
|
reply_to=utils.get_reply_to(
|
||||||
reply_to_message_id=reply_to_message_id,
|
reply_to_message_id=reply_to_message_id,
|
||||||
message_thread_id=message_thread_id,
|
message_thread_id=message_thread_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user