Rename edit -> edit_text and reply -> reply_text bound methods
This commit is contained in:
parent
c485715db1
commit
3ae77d55c7
@ -34,13 +34,13 @@ Message
|
||||
- :meth:`~Message.click`
|
||||
- :meth:`~Message.delete`
|
||||
- :meth:`~Message.download`
|
||||
- :meth:`~Message.edit`
|
||||
- :meth:`~Message.forward`
|
||||
- :meth:`~Message.pin`
|
||||
- :meth:`~Message.edit_text`
|
||||
- :meth:`~Message.edit_caption`
|
||||
- :meth:`~Message.edit_media`
|
||||
- :meth:`~Message.edit_reply_markup`
|
||||
- :meth:`~Message.forward`
|
||||
- :meth:`~Message.pin`
|
||||
- :meth:`~Message.reply`
|
||||
- :meth:`~Message.reply_text`
|
||||
- :meth:`~Message.reply_animation`
|
||||
- :meth:`~Message.reply_audio`
|
||||
- :meth:`~Message.reply_cached_media`
|
||||
@ -84,7 +84,7 @@ CallbackQuery
|
||||
:columns: 5
|
||||
|
||||
- :meth:`~CallbackQuery.answer`
|
||||
- :meth:`~CallbackQuery.edit`
|
||||
- :meth:`~CallbackQuery.edit_text`
|
||||
- :meth:`~CallbackQuery.edit_caption`
|
||||
- :meth:`~CallbackQuery.edit_media`
|
||||
- :meth:`~CallbackQuery.edit_reply_markup`
|
||||
@ -106,13 +106,13 @@ Details
|
||||
.. automethod:: Message.click()
|
||||
.. automethod:: Message.delete()
|
||||
.. automethod:: Message.download()
|
||||
.. automethod:: Message.edit()
|
||||
.. automethod:: Message.forward()
|
||||
.. automethod:: Message.pin()
|
||||
.. automethod:: Message.edit_text()
|
||||
.. automethod:: Message.edit_caption()
|
||||
.. automethod:: Message.edit_media()
|
||||
.. automethod:: Message.edit_reply_markup()
|
||||
.. automethod:: Message.forward()
|
||||
.. automethod:: Message.pin()
|
||||
.. automethod:: Message.reply()
|
||||
.. automethod:: Message.reply_text()
|
||||
.. automethod:: Message.reply_animation()
|
||||
.. automethod:: Message.reply_audio()
|
||||
.. automethod:: Message.reply_cached_media()
|
||||
@ -141,7 +141,7 @@ Details
|
||||
|
||||
.. CallbackQuery
|
||||
.. automethod:: CallbackQuery.answer()
|
||||
.. automethod:: CallbackQuery.edit()
|
||||
.. automethod:: CallbackQuery.edit_text()
|
||||
.. automethod:: CallbackQuery.edit_caption()
|
||||
.. automethod:: CallbackQuery.edit_media()
|
||||
.. automethod:: CallbackQuery.edit_reply_markup()
|
||||
|
@ -173,14 +173,14 @@ class CallbackQuery(Object, Update):
|
||||
cache_time=cache_time
|
||||
)
|
||||
|
||||
def edit(
|
||||
def edit_text(
|
||||
self,
|
||||
text: str,
|
||||
parse_mode: str = "",
|
||||
disable_web_page_preview: bool = None,
|
||||
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
||||
) -> Union["pyrogram.Message", bool]:
|
||||
"""Bound method *edit* of :obj:`CallbackQuery`.
|
||||
"""Bound method *edit_text* of :obj:`CallbackQuery`.
|
||||
|
||||
Parameters:
|
||||
text (``str``):
|
||||
|
@ -651,7 +651,7 @@ class Message(Object, Update):
|
||||
|
||||
return parsed_message
|
||||
|
||||
def reply(
|
||||
def reply_text(
|
||||
self,
|
||||
text: str,
|
||||
quote: bool = None,
|
||||
@ -661,7 +661,7 @@ class Message(Object, Update):
|
||||
reply_to_message_id: int = None,
|
||||
reply_markup=None
|
||||
) -> "Message":
|
||||
"""Bound method *reply* of :obj:`Message`.
|
||||
"""Bound method *reply_text* of :obj:`Message`.
|
||||
|
||||
Use as a shortcut for:
|
||||
|
||||
@ -676,7 +676,7 @@ class Message(Object, Update):
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
message.reply("hello", quote=True)
|
||||
message.reply_text("hello", quote=True)
|
||||
|
||||
Parameters:
|
||||
text (``str``):
|
||||
@ -2356,14 +2356,14 @@ class Message(Object, Update):
|
||||
progress_args=progress_args
|
||||
)
|
||||
|
||||
def edit(
|
||||
def edit_text(
|
||||
self,
|
||||
text: str,
|
||||
parse_mode: str = "",
|
||||
disable_web_page_preview: bool = None,
|
||||
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
||||
) -> "Message":
|
||||
"""Bound method *edit* of :obj:`Message`.
|
||||
"""Bound method *edit_text* of :obj:`Message`.
|
||||
|
||||
Use as a shortcut for:
|
||||
|
||||
@ -2378,7 +2378,7 @@ class Message(Object, Update):
|
||||
Example:
|
||||
.. code-block:: python
|
||||
|
||||
message.edit("hello")
|
||||
message.edit_text("hello")
|
||||
|
||||
Parameters:
|
||||
text (``str``):
|
||||
|
Loading…
Reference in New Issue
Block a user