mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +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
59
docs/api/methods/set_sticker_position_in_set.md
Normal file
59
docs/api/methods/set_sticker_position_in_set.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# setStickerPositionInSet
|
||||
|
||||
## Description
|
||||
|
||||
Use this method to move a sticker in a set created by the bot to a specific position . Returns True on success.
|
||||
|
||||
|
||||
## Arguments
|
||||
|
||||
| Name | Type | Description |
|
||||
| - | - | - |
|
||||
| `sticker` | `#!python3 str` | File identifier of the sticker |
|
||||
| `position` | `#!python3 int` | New sticker position in the set, zero-based |
|
||||
|
||||
|
||||
|
||||
## Response
|
||||
|
||||
Type: `#!python3 bool`
|
||||
|
||||
Description: Returns True on success.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
### As bot method bot
|
||||
|
||||
```python3
|
||||
result: bool = await bot.set_sticker_position_in_set(...)
|
||||
```
|
||||
|
||||
### Method as object
|
||||
|
||||
Imports:
|
||||
|
||||
- `from aiogram.types import SetStickerPositionInSet`
|
||||
- `from aiogram.api.types import SetStickerPositionInSet`
|
||||
- `from aiogram.api.types.set_sticker_position_in_set import SetStickerPositionInSet`
|
||||
|
||||
#### As reply into Webhook
|
||||
```python3
|
||||
return SetStickerPositionInSet(...)
|
||||
```
|
||||
|
||||
#### With specific bot
|
||||
```python3
|
||||
result: bool = await bot.emit(SetStickerPositionInSet(...))
|
||||
```
|
||||
|
||||
#### In handlers with current bot
|
||||
```python3
|
||||
result: bool = await SetStickerPositionInSet(...)
|
||||
```
|
||||
|
||||
|
||||
## Related pages:
|
||||
|
||||
- [Official documentation](https://core.telegram.org/bots/api#setstickerpositioninset)
|
||||
Loading…
Add table
Add a link
Reference in a new issue