aiogram/docs/api/methods/answer_web_app_query.rst
Alex Root Junior 497436595d
[3.x] Bot API 6.0 (#890)
* 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
2022-04-19 22:03:24 +03:00

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(...)