mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Rename CallbackQuery edit_* bound methods to edit_message_*
We are editing the message the callback query comes from, not the callback query itself.
This commit is contained in:
parent
3ae77d55c7
commit
3ed1bb0d86
@ -81,13 +81,13 @@ CallbackQuery
|
|||||||
^^^^^^^^^^^^^
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
.. hlist::
|
.. hlist::
|
||||||
:columns: 5
|
:columns: 3
|
||||||
|
|
||||||
- :meth:`~CallbackQuery.answer`
|
- :meth:`~CallbackQuery.answer`
|
||||||
- :meth:`~CallbackQuery.edit_text`
|
- :meth:`~CallbackQuery.edit_message_text`
|
||||||
- :meth:`~CallbackQuery.edit_caption`
|
- :meth:`~CallbackQuery.edit_message_caption`
|
||||||
- :meth:`~CallbackQuery.edit_media`
|
- :meth:`~CallbackQuery.edit_message_media`
|
||||||
- :meth:`~CallbackQuery.edit_reply_markup`
|
- :meth:`~CallbackQuery.edit_message_reply_markup`
|
||||||
|
|
||||||
InlineQuery
|
InlineQuery
|
||||||
^^^^^^^^^^^
|
^^^^^^^^^^^
|
||||||
@ -141,10 +141,10 @@ Details
|
|||||||
|
|
||||||
.. CallbackQuery
|
.. CallbackQuery
|
||||||
.. automethod:: CallbackQuery.answer()
|
.. automethod:: CallbackQuery.answer()
|
||||||
.. automethod:: CallbackQuery.edit_text()
|
.. automethod:: CallbackQuery.edit_message_text()
|
||||||
.. automethod:: CallbackQuery.edit_caption()
|
.. automethod:: CallbackQuery.edit_message_caption()
|
||||||
.. automethod:: CallbackQuery.edit_media()
|
.. automethod:: CallbackQuery.edit_message_media()
|
||||||
.. automethod:: CallbackQuery.edit_reply_markup()
|
.. automethod:: CallbackQuery.edit_message_reply_markup()
|
||||||
|
|
||||||
.. InlineQuery
|
.. InlineQuery
|
||||||
.. automethod:: InlineQuery.answer()
|
.. automethod:: InlineQuery.answer()
|
||||||
|
@ -173,14 +173,14 @@ class CallbackQuery(Object, Update):
|
|||||||
cache_time=cache_time
|
cache_time=cache_time
|
||||||
)
|
)
|
||||||
|
|
||||||
def edit_text(
|
def edit_message_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_text* of :obj:`CallbackQuery`.
|
"""Bound method *edit_message_text* of :obj:`CallbackQuery`.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
text (``str``):
|
text (``str``):
|
||||||
@ -224,13 +224,13 @@ class CallbackQuery(Object, Update):
|
|||||||
reply_markup=reply_markup
|
reply_markup=reply_markup
|
||||||
)
|
)
|
||||||
|
|
||||||
def edit_caption(
|
def edit_message_caption(
|
||||||
self,
|
self,
|
||||||
caption: str,
|
caption: str,
|
||||||
parse_mode: str = "",
|
parse_mode: str = "",
|
||||||
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
||||||
) -> Union["pyrogram.Message", bool]:
|
) -> Union["pyrogram.Message", bool]:
|
||||||
"""Bound method *edit_caption* of :obj:`Message`.
|
"""Bound method *edit_message_caption* of :obj:`CallbackQuery`.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
caption (``str``):
|
caption (``str``):
|
||||||
@ -270,12 +270,12 @@ class CallbackQuery(Object, Update):
|
|||||||
reply_markup=reply_markup
|
reply_markup=reply_markup
|
||||||
)
|
)
|
||||||
|
|
||||||
def edit_media(
|
def edit_message_media(
|
||||||
self,
|
self,
|
||||||
media: "pyrogram.InputMedia",
|
media: "pyrogram.InputMedia",
|
||||||
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
||||||
) -> Union["pyrogram.Message", bool]:
|
) -> Union["pyrogram.Message", bool]:
|
||||||
"""Bound method *edit_media* of :obj:`Message`.
|
"""Bound method *edit_message_media* of :obj:`CallbackQuery`.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
media (:obj:`InputMedia`):
|
media (:obj:`InputMedia`):
|
||||||
@ -310,11 +310,11 @@ class CallbackQuery(Object, Update):
|
|||||||
reply_markup=reply_markup
|
reply_markup=reply_markup
|
||||||
)
|
)
|
||||||
|
|
||||||
def edit_reply_markup(
|
def edit_message_reply_markup(
|
||||||
self,
|
self,
|
||||||
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
reply_markup: "pyrogram.InlineKeyboardMarkup" = None
|
||||||
) -> Union["pyrogram.Message", bool]:
|
) -> Union["pyrogram.Message", bool]:
|
||||||
"""Bound method *edit_reply_markup* of :obj:`Message`.
|
"""Bound method *edit_message_reply_markup* of :obj:`CallbackQuery`.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
reply_markup (:obj:`InlineKeyboardMarkup`):
|
reply_markup (:obj:`InlineKeyboardMarkup`):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user