Module

x/grammy/mod.ts>Api#addStickerToSet

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

Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.

Parameters

user_id: number

User identifier of sticker set owner

name: string

Sticker set name

emojis: string

One or more emoji corresponding to the sticker

optional
other: Other<R, "addStickerToSet", "user_id" | "name" | "emojis">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

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