Skip to content

Commit 7656a4d

Browse files
committed
fix: docstrings for send_paid_media and send_web_page
1 parent 11439f3 commit 7656a4d

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

pyrogram/methods/messages/send_paid_media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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*):

pyrogram/methods/messages/send_web_page.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)