mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix send_contact and send_document docstrings
This commit is contained in:
parent
e6070cbc87
commit
746a0d0595
@ -44,7 +44,7 @@ class SendContact(BaseClient):
|
||||
first_name (``str``):
|
||||
Contact's first name.
|
||||
|
||||
last_name (``str``):
|
||||
last_name (``str``, *optional*):
|
||||
Contact's last name.
|
||||
|
||||
disable_notification (``bool``, *optional*):
|
||||
|
@ -55,7 +55,7 @@ class SendDocument(BaseClient):
|
||||
caption (``str``, *optional*):
|
||||
Document caption, 0-200 characters.
|
||||
|
||||
parse_mode (``str``):
|
||||
parse_mode (``str``, *optional*):
|
||||
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.
|
||||
Defaults to Markdown.
|
||||
@ -71,12 +71,12 @@ class SendDocument(BaseClient):
|
||||
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.
|
||||
|
||||
progress (``callable``):
|
||||
progress (``callable``, *optional*):
|
||||
Pass a callback function to view the upload progress.
|
||||
The function must take *(client, current, total, \*args)* as positional arguments (look at the section
|
||||
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
|
||||
a chat_id and a message_id in order to edit a message with the updated progress.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user