diff --git a/pyrogram/methods/messages/copy_media_group.py b/pyrogram/methods/messages/copy_media_group.py index 70e8f0f0..c4c3db01 100644 --- a/pyrogram/methods/messages/copy_media_group.py +++ b/pyrogram/methods/messages/copy_media_group.py @@ -103,7 +103,8 @@ class CopyMediaGroup: Date when the message will be automatically sent. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. Returns: List of :obj:`~pyrogram.types.Message`: On success, a list of copied messages is returned. diff --git a/pyrogram/methods/messages/edit_message_media.py b/pyrogram/methods/messages/edit_message_media.py index 2056f78f..ca755226 100644 --- a/pyrogram/methods/messages/edit_message_media.py +++ b/pyrogram/methods/messages/edit_message_media.py @@ -60,7 +60,8 @@ class EditMessageMedia: One of the InputMedia objects describing an animation, audio, document, photo or video. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. schedule_date (:py:obj:`~datetime.datetime`, *optional*): Date when the message will be automatically sent. diff --git a/pyrogram/methods/messages/send_cached_media.py b/pyrogram/methods/messages/send_cached_media.py index 866a5180..d1461dc2 100644 --- a/pyrogram/methods/messages/send_cached_media.py +++ b/pyrogram/methods/messages/send_cached_media.py @@ -112,7 +112,8 @@ class SendCachedMedia: True, if the message media is covered by a spoiler animation. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. 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, diff --git a/pyrogram/methods/messages/send_media_group.py b/pyrogram/methods/messages/send_media_group.py index 3f1ff96e..f0df2783 100644 --- a/pyrogram/methods/messages/send_media_group.py +++ b/pyrogram/methods/messages/send_media_group.py @@ -106,7 +106,8 @@ class SendMediaGroup: Protects the contents of the sent message from forwarding and saving. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. Returns: List of :obj:`~pyrogram.types.Message`: On success, a list of the sent messages is returned. diff --git a/pyrogram/methods/messages/send_message.py b/pyrogram/methods/messages/send_message.py index ccef39d4..0fa07333 100644 --- a/pyrogram/methods/messages/send_message.py +++ b/pyrogram/methods/messages/send_message.py @@ -82,7 +82,8 @@ class SendMessage: For supergroups only. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. diff --git a/pyrogram/methods/messages/send_web_page.py b/pyrogram/methods/messages/send_web_page.py index 04bbd16c..7727f6c2 100644 --- a/pyrogram/methods/messages/send_web_page.py +++ b/pyrogram/methods/messages/send_web_page.py @@ -75,13 +75,16 @@ class SendWebPage: List of special entities that appear in message text, which can be specified instead of *parse_mode*. force_large_media (``bool``, *optional*): - Make web page preview image larger. + If True, media in the link preview will be larger. + Ignored if the URL isn't explicitly specified or media size change isn't supported for the preview. force_small_media (``bool``, *optional*): - Make web page preview image smaller. + If True, media in the link preview will be smaller. + Ignored if the URL isn't explicitly specified or media size change isn't supported for the preview. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. disable_notification (``bool``, *optional*): Sends the message silently. diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 0d740695..ad3cad89 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -140,7 +140,8 @@ class Message(Object, Update): You can use ``media = getattr(message, message.media.value)`` to access the media message. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. edit_date (:py:obj:`~datetime.datetime`, *optional*): Date the message was last edited. @@ -1234,7 +1235,8 @@ class Message(Object, Update): For supergroups only. invert_media (``bool``, *optional*): - Invert media. + If True, link preview will be shown above the message text. + Otherwise, the link preview will be shown below the message text. reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. diff --git a/pyrogram/types/messages_and_media/web_page.py b/pyrogram/types/messages_and_media/web_page.py index 6ed0a899..42fa34ac 100644 --- a/pyrogram/types/messages_and_media/web_page.py +++ b/pyrogram/types/messages_and_media/web_page.py @@ -81,10 +81,12 @@ class WebPage(Object): Whether the webpage preview is large. force_large_media (``bool``, *optional*): - Request the client to enlarge the webpage preview. + If True, media in the link preview will be larger. + Ignored if the URL isn't explicitly specified or media size change isn't supported for the preview. force_small_media (``bool``, *optional*): - Request the client to shrink the webpage preview. + If True, media in the link preview will be smaller. + Ignored if the URL isn't explicitly specified or media size change isn't supported for the preview. manual (``bool``, *optional*): Whether the webpage preview was changed by the user.