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

x/grammy/mod.ts>Api#addStickerToSet

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