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.20.2/mod.ts";

Use this method to add a new sticker to a set created by the bot. The format of the added sticker must match the format of the other stickers in the set. Emoji sticker sets can have up to 200 stickers. Animated and video 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

sticker: InputSticker

An object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

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