aiogram/docs2/source/api/methods/set_sticker_position_in_set.rst
2020-06-15 02:22:24 +03:00

52 lines
No EOL
1 KiB
ReStructuredText

#######################
setStickerPositionInSet
#######################
Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.
Returns: :obj:`bool`
.. automodule:: aiogram.api.methods.set_sticker_position_in_set
:members:
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.set_sticker_position_in_set(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods import SetStickerPositionInSet`
- :code:`from aiogram.api.methods import SetStickerPositionInSet`
- :code:`from aiogram.api.methods.set_sticker_position_in_set import SetStickerPositionInSet`
In handlers with current bot
----------------------------
.. code-block::
result: bool = await SetStickerPositionInSet(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block::
result: bool = await bot(SetStickerPositionInSet(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block::
return SetStickerPositionInSet(...)