mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
51 lines
928 B
ReStructuredText
51 lines
928 B
ReStructuredText
######################
|
|
answerPreCheckoutQuery
|
|
######################
|
|
|
|
Returns: :obj:`bool`
|
|
|
|
.. automodule:: aiogram.methods.answer_pre_checkout_query
|
|
:members:
|
|
:member-order: bysource
|
|
:undoc-members: True
|
|
|
|
|
|
Usage
|
|
=====
|
|
|
|
As bot method
|
|
-------------
|
|
|
|
.. code-block::
|
|
|
|
result: bool = await bot.answer_pre_checkout_query(...)
|
|
|
|
|
|
Method as object
|
|
----------------
|
|
|
|
Imports:
|
|
|
|
- :code:`from aiogram.methods.answer_pre_checkout_query import AnswerPreCheckoutQuery`
|
|
- alias: :code:`from aiogram.methods import AnswerPreCheckoutQuery`
|
|
|
|
In handlers with current bot
|
|
----------------------------
|
|
|
|
.. code-block:: python
|
|
|
|
result: bool = await AnswerPreCheckoutQuery(...)
|
|
|
|
With specific bot
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
result: bool = await bot(AnswerPreCheckoutQuery(...))
|
|
|
|
As reply into Webhook in handler
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: python
|
|
|
|
return AnswerPreCheckoutQuery(...)
|