setStickerPositionInSet()
Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.
parameters
| parameter | type | required | description |
|---|---|---|---|
sticker | string | required | File identifier of the sticker |
position | number | required | New sticker position in the set, zero-based |
returns
boolean
usage in yaebal
setStickerPositionInSet is directly typed on Api — call it straight off bot.api.
import type { SetStickerPositionInSetParams } from "@yaebal/types";
await bot.api.setStickerPositionInSet({
sticker: "...",
position: 1,
} satisfies SetStickerPositionInSetParams);official Bot API docs: https://core.telegram.org/bots/api/#setstickerpositioninset