From 2d785acdc75c422f45805184413f9050b6f4daff Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 19 Mar 2021 20:42:48 +0100 Subject: [PATCH] Add Message.edit and Message.reply to docs --- compiler/docs/compiler.py | 2 ++ pyrogram/types/messages_and_media/message.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index fdc01d5a..fc8734eb 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -461,10 +461,12 @@ def pyrogram_api(): Message.copy Message.pin Message.unpin + Message.edit Message.edit_text Message.edit_caption Message.edit_media Message.edit_reply_markup + Message.reply Message.reply_text Message.reply_animation Message.reply_audio diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 92125cd8..f1cce01d 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -776,6 +776,8 @@ class Message(Object, Update): ) -> "Message": """Bound method *reply_text* of :obj:`~pyrogram.types.Message`. + An alias exists as *reply*. + Use as a shortcut for: .. code-block:: python @@ -2580,6 +2582,8 @@ class Message(Object, Update): ) -> "Message": """Bound method *edit_text* of :obj:`~pyrogram.types.Message`. + An alias exists as *edit*. + Use as a shortcut for: .. code-block:: python