mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix reply_text docstrings and add the Example section
This commit is contained in:
parent
131d792bad
commit
e94520b7bc
1 changed files with 13 additions and 2 deletions
|
|
@ -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``):
|
||||
|
|
|
|||
Loading…
Reference in a new issue