Skip to main content
Module

x/grammy/core/api.ts>Api#createNewStickerSet

The Telegram Bot Framework.
Extremely Popular
Go to Latest
method Api.prototype.createNewStickerSet
import { Api } from "https://deno.land/x/grammy@v1.11.1/core/api.ts";

Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.

Parameters

user_id: number

User identifier of created sticker set owner

name: string

Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “_by_”. <bot_username> is case insensitive. 1-64 characters.

title: string

Sticker set title, 1-64 characters

emojis: string

One or more emoji corresponding to the sticker

optional
other: Other<R, "createNewStickerSet",
| "user_id"
| "name"
| "title"
| "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#createnewstickerset