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
| parameter | type | required | description |
|---|---|---|---|
sticker | string | required | File identifier of the sticker |
mask_position | MaskPosition | optional | A 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.
import type { SetStickerMaskPositionParams } from "@yaebal/types";
await bot.api.call<boolean>("setStickerMaskPosition", {
sticker: "...",
} satisfies SetStickerMaskPositionParams);official Bot API docs: https://core.telegram.org/bots/api/#setstickermaskposition