mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-13 18:43:53 +00:00
52 lines
911 B
ReStructuredText
52 lines
911 B
ReStructuredText
|
|
##################
|
||
|
|
setMessageReaction
|
||
|
|
##################
|
||
|
|
|
||
|
|
Returns: :obj:`bool`
|
||
|
|
|
||
|
|
.. automodule:: aiogram.methods.set_message_reaction
|
||
|
|
:members:
|
||
|
|
:member-order: bysource
|
||
|
|
:undoc-members: True
|
||
|
|
:exclude-members: model_config,model_fields
|
||
|
|
|
||
|
|
|
||
|
|
Usage
|
||
|
|
=====
|
||
|
|
|
||
|
|
As bot method
|
||
|
|
-------------
|
||
|
|
|
||
|
|
.. code-block::
|
||
|
|
|
||
|
|
result: bool = await bot.set_message_reaction(...)
|
||
|
|
|
||
|
|
|
||
|
|
Method as object
|
||
|
|
----------------
|
||
|
|
|
||
|
|
Imports:
|
||
|
|
|
||
|
|
- :code:`from aiogram.methods.set_message_reaction import SetMessageReaction`
|
||
|
|
- alias: :code:`from aiogram.methods import SetMessageReaction`
|
||
|
|
|
||
|
|
With specific bot
|
||
|
|
~~~~~~~~~~~~~~~~~
|
||
|
|
|
||
|
|
.. code-block:: python
|
||
|
|
|
||
|
|
result: bool = await bot(SetMessageReaction(...))
|
||
|
|
|
||
|
|
As reply into Webhook in handler
|
||
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
|
|
||
|
|
.. code-block:: python
|
||
|
|
|
||
|
|
return SetMessageReaction(...)
|
||
|
|
|
||
|
|
|
||
|
|
As shortcut from received object
|
||
|
|
--------------------------------
|
||
|
|
|
||
|
|
- :meth:`aiogram.types.message.Message.react`
|