Fix send_audio docstrings

This commit is contained in:
Dan 2018-05-09 12:43:38 +02:00
parent f92b74328f
commit e6070cbc87

View File

@ -42,7 +42,7 @@ class SendAudio(BaseClient):
progress_args: tuple = ()): progress_args: tuple = ()):
"""Use this method to send audio files. """Use this method to send audio files.
For sending voice messages, use the :obj:`send_voice` method instead. For sending voice messages, use the :obj:`send_voice()` method instead.
Args: Args:
chat_id (``int`` | ``str``): chat_id (``int`` | ``str``):
@ -60,7 +60,7 @@ class SendAudio(BaseClient):
caption (``str``, *optional*): caption (``str``, *optional*):
Audio caption, 0-200 characters. Audio 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.
@ -85,12 +85,12 @@ class SendAudio(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.