mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
* Base implementation * Bump license * Revert re-generated tests * Fix tests, improved docs * Remove TODO * Removed unreachable code * Changed type of `last_synchronization_error_date` * Fixed wrongly cleaned code
51 lines
925 B
ReStructuredText
51 lines
925 B
ReStructuredText
#################
|
|
answerWebAppQuery
|
|
#################
|
|
|
|
Returns: :obj:`SentWebAppMessage`
|
|
|
|
.. automodule:: aiogram.methods.answer_web_app_query
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: SentWebAppMessage = await bot.answer_web_app_query(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.answer_web_app_query import AnswerWebAppQuery`
|
|
- alias: :code:`from aiogram.methods import AnswerWebAppQuery`
|
|
|
|
In handlers with current bot
|
|
----------------------------
|
|
|
|
.. code-block:: python
|
|
|
|
result: SentWebAppMessage = await AnswerWebAppQuery(...)
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: SentWebAppMessage = await bot(AnswerWebAppQuery(...))
|
|
|
|
As reply into Webhook in handler
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
return AnswerWebAppQuery(...)
|