Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/mod.ts>Api#setStickerMaskPosition

The Telegram Bot Framework.
Very Popular
Latest
method Api.prototype.setStickerMaskPosition
import { Api } from "https://deno.land/x/grammy@v1.30.1/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