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