aiogram/docs/api/methods/get_sticker_set.md

56 lines
972 B
Markdown
Raw Normal View History

# getStickerSet
## Description
Use this method to get a sticker set. On success, a StickerSet object is returned.
## Arguments
| Name | Type | Description |
| - | - | - |
| `name` | `#!python3 str` | Name of the sticker set |
## Response
Type: `#!python3 StickerSet`
Description: On success, a StickerSet object is returned.
## Usage
### As bot method bot
```python3
result: StickerSet = await bot.get_sticker_set(...)
```
### Method as object
Imports:
- `from aiogram.methods import GetStickerSet`
- `from aiogram.api.methods import GetStickerSet`
- `from aiogram.api.methods.get_sticker_set import GetStickerSet`
2020-01-11 22:59:14 +02:00
#### In handlers with current bot
```python3
2020-01-11 22:59:14 +02:00
result: StickerSet = await GetStickerSet(...)
```
2020-01-11 22:59:14 +02:00
#### With specific bot
```python3
2020-01-11 22:59:14 +02:00
result: StickerSet = await bot(GetStickerSet(...))
```
2020-01-11 22:59:14 +02:00
## Related pages:
- [Official documentation](https://core.telegram.org/bots/api#getstickerset)
- [aiogram.types.StickerSet](../types/sticker_set.md)