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

not (yet) hard-typed on Api — call it through the generic .call<T>() escape hatch documented in @yaebal/types.

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

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