mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 14:55:12 +00:00
Fix send_contact and send_document docstrings
This commit is contained in:
@@ -44,7 +44,7 @@ class SendContact(BaseClient):
|
|||||||
first_name (``str``):
|
first_name (``str``):
|
||||||
Contact's first name.
|
Contact's first name.
|
||||||
|
|
||||||
last_name (``str``):
|
last_name (``str``, *optional*):
|
||||||
Contact's last name.
|
Contact's last name.
|
||||||
|
|
||||||
disable_notification (``bool``, *optional*):
|
disable_notification (``bool``, *optional*):
|
||||||
|
@@ -55,7 +55,7 @@ class SendDocument(BaseClient):
|
|||||||
caption (``str``, *optional*):
|
caption (``str``, *optional*):
|
||||||
Document caption, 0-200 characters.
|
Document caption, 0-200 characters.
|
||||||
|
|
||||||
parse_mode (``str``):
|
parse_mode (``str``, *optional*):
|
||||||
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
|
Use :obj:`MARKDOWN <pyrogram.ParseMode.MARKDOWN>` or :obj:`HTML <pyrogram.ParseMode.HTML>`
|
||||||
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
|
if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your caption.
|
||||||
Defaults to Markdown.
|
Defaults to Markdown.
|
||||||
@@ -71,12 +71,12 @@ class SendDocument(BaseClient):
|
|||||||
Additional interface options. An object for an inline keyboard, custom reply keyboard,
|
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.
|
instructions to remove reply keyboard or to force a reply from the user.
|
||||||
|
|
||||||
progress (``callable``):
|
progress (``callable``, *optional*):
|
||||||
Pass a callback function to view the upload progress.
|
Pass a callback function to view the upload progress.
|
||||||
The function must take *(client, current, total, \*args)* as positional arguments (look at the section
|
The function must take *(client, current, total, \*args)* as positional arguments (look at the section
|
||||||
below for a detailed description).
|
below for a detailed description).
|
||||||
|
|
||||||
progress_args (``tuple``):
|
progress_args (``tuple``, *optional*):
|
||||||
Extra custom arguments for the progress callback function. Useful, for example, if you want to pass
|
Extra custom arguments for the progress callback function. Useful, for example, if you want to pass
|
||||||
a chat_id and a message_id in order to edit a message with the updated progress.
|
a chat_id and a message_id in order to edit a message with the updated progress.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user