mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Pyrofork: Add invert_media parameter to send_message and Message.reply_text
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
a5e3e6802a
commit
621a07bb8c
2 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue