setStickerPositionInSet¶
Returns: bool
- class aiogram.methods.set_sticker_position_in_set.SetStickerPositionInSet(*, sticker: str, position: int, **extra_data: Any)[source]¶
Use this method to move a sticker in a set created by the bot to a specific position. Returns
True
on success.Source: https://core.telegram.org/bots/api#setstickerpositioninset
- sticker: str¶
File identifier of the sticker
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- position: int¶
New sticker position in the set, zero-based
Usage¶
As bot method¶
result: bool = await bot.set_sticker_position_in_set(...)
Method as object¶
Imports:
from aiogram.methods.set_sticker_position_in_set import SetStickerPositionInSet
alias:
from aiogram.methods import SetStickerPositionInSet
With specific bot¶
result: bool = await bot(SetStickerPositionInSet(...))
As reply into Webhook in handler¶
return SetStickerPositionInSet(...)