Stickers

setStickerMaskPosition()

Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot. Returns True on success.

parameters

parametertyperequireddescription
stickerstringrequiredFile identifier of the sticker
mask_positionMaskPositionoptionalA JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position.

returns

boolean

usage in yaebal

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

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

await bot.api.setStickerMaskPosition({
  sticker: "...",
} satisfies SetStickerMaskPositionParams);