From e94520b7bc8564b788448a025eaede0cd798b752 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 3 Jun 2018 17:40:59 +0200 Subject: [PATCH] Fix reply_text docstrings and add the Example section --- pyrogram/client/types/message.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/types/message.py b/pyrogram/client/types/message.py index a6f099bb..1ffab8ed 100644 --- a/pyrogram/client/types/message.py +++ b/pyrogram/client/types/message.py @@ -318,9 +318,20 @@ class Message(Object): disable_notification: bool = None, reply_to_message_id: int = None, reply_markup=None): - """Use this method as a shortcut for:: + """Use this method as a shortcut for: - app.send_message(message.chat.id, ...) + .. code-block:: python + + client.send_message( + chat_id=message.chat.id, + text="hello", + reply_to_message_id=message.message_id + ) + + Example: + .. code-block:: python + + message.reply_text("hello", quote=True) Args: text (``str``):