File tree Expand file tree Collapse file tree
pyrogram/methods/messages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ async def send_paid_media(
7676 caption (``str``, *optional*):
7777 Media caption, 0-1024 characters after entities parsing.
7878
79- invoice_payload (``str``):
79+ payload (``str``):
8080 Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
8181
8282 parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
Original file line number Diff line number Diff line change @@ -79,6 +79,18 @@ async def send_web_page(
7979 Link that will be previewed.
8080 If url not specified, the first URL found in the text will be used.
8181
82+ prefer_small_media (``bool``, *optional*):
83+ True, if the media in the link preview is supposed to be shrunk.
84+ Ignored if the URL isn't explicitly specified or media size change isn't supported for the preview.
85+
86+ prefer_large_media (``bool``, *optional*):
87+ True, if the media in the link preview is supposed to be enlarged.
88+ Ignored if the URL isn't explicitly specified or media size change isn't supported for the preview.
89+
90+ show_caption_above_media (``bool``, *optional*):
91+ True, if the link preview must be shown above the message text.
92+ Otherwise, the link preview will be shown below the message text.
93+
8294 parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
8395 By default, texts are parsed using both Markdown and HTML styles.
8496 You can combine both syntaxes together.
You can’t perform that action at this time.
0 commit comments