From 746a0d0595a328378ce8aaae4b619fba3182afb1 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 9 May 2018 12:44:43 +0200 Subject: [PATCH] Fix send_contact and send_document docstrings --- pyrogram/client/methods/messages/media/send_contact.py | 2 +- pyrogram/client/methods/messages/media/send_document.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyrogram/client/methods/messages/media/send_contact.py b/pyrogram/client/methods/messages/media/send_contact.py index 505dcc88..974b06ac 100644 --- a/pyrogram/client/methods/messages/media/send_contact.py +++ b/pyrogram/client/methods/messages/media/send_contact.py @@ -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*): diff --git a/pyrogram/client/methods/messages/media/send_document.py b/pyrogram/client/methods/messages/media/send_document.py index 09d1c5a9..0e6e2a69 100644 --- a/pyrogram/client/methods/messages/media/send_document.py +++ b/pyrogram/client/methods/messages/media/send_document.py @@ -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 ` or :obj:`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.