createStickerSet

Create a sticker set.

Parameters

name: string

The sticker set’s name.

slug: string

The sticker set’s slug.

stickers: InputSticker[]

The initial stickers of the set.

isMask?: boolean

Whether a mask sticker set should be created.

isCustomEmoji?: boolean

Whether a custom emoji set should be created.

isAdaptive?: boolean

Whether the items of the sticker set should be adaptive.

thumbnail?: FileSource

An optional thumbnail to use for the sticker set.

software?: string

The name of the software used to create the sticker set.

userId?: ID

The identifier of the owner of the sticker set. Required for bots. Bot-only.

fileName?: string

The file name to assign if applicable.

fileSize?: number

The file’s size.

mimeType?: string

The mime type to assign if applicable.

chunkSize?: number

Size of each upload chunk in bytes.

signal?: AbortSignal

Upload abort signal.

progressId?: string

A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent.

Result

Syntax

// Required parameters only.
await client.createStickerSet(name, slug, stickers);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.createStickerSet(name, slug, stickers, {
    isMask,
    isCustomEmoji,
    isAdaptive,
    thumbnail,
    software,
    userId,
    fileName,
    fileSize,
    mimeType,
    chunkSize,
    signal,
    progressId,
});