aiogram/docs2/api/methods/answer_inline_query.rst

51 lines
869 B
ReStructuredText
Raw Normal View History

#################
answerInlineQuery
#################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.answer_inline_query
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.answer_inline_query(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.answer_inline_query import AnswerInlineQuery`
2021-01-24 20:54:38 +02:00
- alias: :code:`from aiogram.methods import AnswerInlineQuery`
In handlers with current bot
----------------------------
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: bool = await AnswerInlineQuery(...)
With specific bot
~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
result: bool = await bot(AnswerInlineQuery(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-01-24 20:54:38 +02:00
.. code-block:: python
return AnswerInlineQuery(...)