mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Add autogenerated docs for types and methods
This commit is contained in:
parent
a24708d589
commit
65331e1fda
166 changed files with 7361 additions and 4 deletions
55
docs/api/methods/get_sticker_set.md
Normal file
55
docs/api/methods/get_sticker_set.md
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# 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.types import GetStickerSet`
|
||||
- `from aiogram.api.types import GetStickerSet`
|
||||
- `from aiogram.api.types.get_sticker_set import GetStickerSet`
|
||||
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: StickerSet = await bot.emit(GetStickerSet(...))
|
||||
```
|
||||
|
||||
#### In handlers with current bot
|
||||
```python3
|
||||
result: StickerSet = await GetStickerSet(...)
|
||||
```
|
||||
|
||||
|
||||
## Related pages:
|
||||
|
||||
- [Official documentation](https://core.telegram.org/bots/api#getstickerset)
|
||||
- [aiogram.types.StickerSet](../types/sticker_set.md)
|
||||
Loading…
Add table
Add a link
Reference in a new issue