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
setStickerMaskPosition is directly typed on Api — call it straight off bot.api.
import type { SetStickerMaskPositionParams } from "@yaebal/types";
await bot.api.setStickerMaskPosition({
sticker: "...",
} satisfies SetStickerMaskPositionParams);official Bot API docs: https://core.telegram.org/bots/api/#setstickermaskposition