mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add sphinx with converting part of pages
This commit is contained in:
parent
3aa68a93d1
commit
f68960ca87
192 changed files with 6123 additions and 350 deletions
54
docs2/source/api/methods/answer_inline_query.rst
Normal file
54
docs2/source/api/methods/answer_inline_query.rst
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
#################
|
||||
answerInlineQuery
|
||||
#################
|
||||
|
||||
Use this method to send answers to an inline query. On success, True is returned.
|
||||
|
||||
No more than 50 results per query are allowed.
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.api.methods.answer_inline_query
|
||||
:members:
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.answer_inline_query(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import AnswerInlineQuery`
|
||||
- :code:`from aiogram.api.methods import AnswerInlineQuery`
|
||||
- :code:`from aiogram.api.methods.answer_inline_query import AnswerInlineQuery`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await AnswerInlineQuery(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot(AnswerInlineQuery(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
return AnswerInlineQuery(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue