Module

x/grammy/mod.ts>Api#createNewStickerSet

The Telegram Bot Framework.
Very Popular
Go to Latest
method Api.prototype.createNewStickerSet
import { Api } from "https://dotland.deno.dev/x/grammy@v1.10.1/mod.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