2021-01-26 21:20:52 +02:00
|
|
|
###################
|
|
|
|
|
answerCallbackQuery
|
|
|
|
|
###################
|
|
|
|
|
|
|
|
|
|
Returns: :obj:`bool`
|
|
|
|
|
|
|
|
|
|
.. automodule:: aiogram.methods.answer_callback_query
|
|
|
|
|
:members:
|
|
|
|
|
:member-order: bysource
|
|
|
|
|
:undoc-members: True
|
2023-07-04 00:39:02 +03:00
|
|
|
:exclude-members: model_config,model_fields
|
2021-01-26 21:20:52 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
|
=====
|
|
|
|
|
|
|
|
|
|
As bot method
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
.. code-block::
|
|
|
|
|
|
|
|
|
|
result: bool = await bot.answer_callback_query(...)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Method as object
|
|
|
|
|
----------------
|
|
|
|
|
|
|
|
|
|
Imports:
|
|
|
|
|
|
|
|
|
|
- :code:`from aiogram.methods.answer_callback_query import AnswerCallbackQuery`
|
|
|
|
|
- alias: :code:`from aiogram.methods import AnswerCallbackQuery`
|
|
|
|
|
|
|
|
|
|
With specific bot
|
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
|
|
result: bool = await bot(AnswerCallbackQuery(...))
|
|
|
|
|
|
|
|
|
|
As reply into Webhook in handler
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
2021-05-11 23:04:32 +03:00
|
|
|
return AnswerCallbackQuery(...)
|
2022-12-04 03:05:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
As shortcut from received object
|
|
|
|
|
--------------------------------
|
|
|
|
|
|
|
|
|
|
- :meth:`aiogram.types.callback_query.CallbackQuery.answer`
|