mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Fix reply_text docstrings and add the Example section
This commit is contained in:
parent
131d792bad
commit
e94520b7bc
@ -318,9 +318,20 @@ class Message(Object):
|
|||||||
disable_notification: bool = None,
|
disable_notification: bool = None,
|
||||||
reply_to_message_id: int = None,
|
reply_to_message_id: int = None,
|
||||||
reply_markup=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:
|
Args:
|
||||||
text (``str``):
|
text (``str``):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user