Pyrofork: Add invert_media parameter to send_message and Message.reply_text

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-01-02 02:11:05 +07:00
parent a5e3e6802a
commit 621a07bb8c
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
2 changed files with 11 additions and 1 deletions

View file

@ -42,6 +42,7 @@ class SendMessage:
quote_entities: List["types.MessageEntity"] = None,
schedule_date: datetime = None,
protect_content: bool = None,
invert_media: bool = None,
reply_markup: Union[
"types.InlineKeyboardMarkup",
"types.ReplyKeyboardMarkup",
@ -104,6 +105,9 @@ class SendMessage:
protect_content (``bool``, *optional*):
Protects the contents of the sent message from forwarding and saving.
invert_media (``bool``, *optional*):
Move web page preview to above the message.
reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
Additional interface options. An object for an inline keyboard, custom reply keyboard,
instructions to remove reply keyboard or to force a reply from the user.
@ -171,7 +175,8 @@ class SendMessage:
reply_markup=await reply_markup.write(self) if reply_markup else None,
message=message,
entities=entities,
noforwards=protect_content
noforwards=protect_content,
invert_media=invert_media
)
)

View file

@ -1194,6 +1194,7 @@ class Message(Object, Update):
quote_entities: List["types.MessageEntity"] = None,
schedule_date: datetime = None,
protect_content: bool = None,
invert_media: bool = None,
reply_markup=None
) -> "Message":
"""Bound method *reply_text* of :obj:`~pyrogram.types.Message`.
@ -1259,6 +1260,9 @@ class Message(Object, Update):
protect_content (``bool``, *optional*):
Protects the contents of the sent message from forwarding and saving.
invert_media (``bool``, *optional*):
Move web page preview to above the message.
reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
Additional interface options. An object for an inline keyboard, custom reply keyboard,
instructions to remove reply keyboard or to force a reply from the user.
@ -1300,6 +1304,7 @@ class Message(Object, Update):
quote_entities=quote_entities,
schedule_date=schedule_date,
protect_content=protect_content,
invert_media=invert_media,
reply_markup=reply_markup
)