aiogram/docs2/api/methods/get_sticker_set.rst

50 lines
887 B
ReStructuredText
Raw Normal View History

#############
getStickerSet
#############
Use this method to get a sticker set. On success, a StickerSet object is returned.
Returns: :obj:`StickerSet`
.. automodule:: aiogram.api.methods.get_sticker_set
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:special-members: __init__
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: StickerSet = await bot.get_sticker_set(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods import GetStickerSet`
- :code:`from aiogram.api.methods import GetStickerSet`
- :code:`from aiogram.api.methods.get_sticker_set import GetStickerSet`
In handlers with current bot
----------------------------
.. code-block::
result: StickerSet = await GetStickerSet(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block::
result: StickerSet = await bot(GetStickerSet(...))