2019-11-16 22:32:05 +02:00
|
|
|
# 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:
|
|
|
|
|
|
2019-12-11 16:52:21 +02:00
|
|
|
- `from aiogram.methods import GetStickerSet`
|
|
|
|
|
- `from aiogram.api.methods import GetStickerSet`
|
|
|
|
|
- `from aiogram.api.methods.get_sticker_set import GetStickerSet`
|
2019-11-16 22:32:05 +02:00
|
|
|
|
2020-01-11 22:59:14 +02:00
|
|
|
#### In handlers with current bot
|
2019-11-16 22:32:05 +02:00
|
|
|
```python3
|
2020-01-11 22:59:14 +02:00
|
|
|
result: StickerSet = await GetStickerSet(...)
|
2019-11-16 22:32:05 +02:00
|
|
|
```
|
|
|
|
|
|
2020-01-11 22:59:14 +02:00
|
|
|
#### With specific bot
|
2019-11-16 22:32:05 +02:00
|
|
|
```python3
|
2020-01-11 22:59:14 +02:00
|
|
|
result: StickerSet = await bot(GetStickerSet(...))
|
2019-11-16 22:32:05 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
2020-01-11 22:59:14 +02:00
|
|
|
|
2019-11-16 22:32:05 +02:00
|
|
|
## Related pages:
|
|
|
|
|
|
|
|
|
|
- [Official documentation](https://core.telegram.org/bots/api#getstickerset)
|
|
|
|
|
- [aiogram.types.StickerSet](../types/sticker_set.md)
|