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 str File identifier of the sticker
position int New sticker position in the set, zero-based

Response

Type: bool

Description: Returns True on success.

Usage

As bot method

result: bool = await bot.set_sticker_position_in_set(...)

Method as object

Imports:

  • from aiogram.methods import SetStickerPositionInSet
  • from aiogram.api.methods import SetStickerPositionInSet
  • from aiogram.api.methods.set_sticker_position_in_set import SetStickerPositionInSet

In handlers with current bot

result: bool = await SetStickerPositionInSet(...)

With specific bot

result: bool = await bot(SetStickerPositionInSet(...))

As reply into Webhook in handler

return SetStickerPositionInSet(...)