Module

x/grammy/mod.ts>Api#setStickerMaskPosition

The Telegram Bot Framework.
Very Popular
Go to Latest
method Api.prototype.setStickerMaskPosition
import { Api } from "https://dotland.deno.dev/x/grammy@v1.15.0/mod.ts";

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

sticker: string

File identifier of the sticker

optional
mask_position: MaskPosition

An object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position.

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#setstickermaskposition