Stickers

setStickerPositionInSet()

Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.

parameters

parametertyperequireddescription
stickerstringrequiredFile identifier of the sticker
positionnumberrequiredNew sticker position in the set, zero-based

returns

boolean

usage in yaebal

setStickerPositionInSet is directly typed on Api — call it straight off bot.api.

bot.ts
import type { SetStickerPositionInSetParams } from "@yaebal/types";

await bot.api.setStickerPositionInSet({
  sticker: "...",
  position: 1,
} satisfies SetStickerPositionInSetParams);