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

x/grammy/mod.ts>Api#createNewStickerSet

The Telegram Bot Framework.
Very Popular
Latest
method Api.prototype.createNewStickerSet
import { Api } from "https://deno.land/x/grammy@v1.30.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. 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>. <bot_username> is case insensitive. 1-64 characters.

title: string

Sticker set title, 1-64 characters

stickers: InputSticker[]

A list of 1-50 initial stickers to be added to the sticker set

optional
other: Other<R, "createNewStickerSet",
| "user_id"
| "name"
| "title"
| "sticker_format"
| "stickers"
>

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