Skip to content

createNewStickerSet

Function · TDLib 1.8.67 · d1085f9c

Creates a new sticker set. Returns the newly created sticker set

createNewStickerSet(
  user_id: int53,
  title: string,
  name: string,
  sticker_type: StickerType,
  needs_repainting: Bool,
  stickers: list of NewSticker,
  source: string
) → StickerSet

user_id

int53

Sticker set owner; ignored for regular users

title

string

Sticker set title; 1-64 characters

name

string

Sticker set name. Can contain only English letters, digits and underscores. Must end with "by" ( is case insensitive) for bots; 0-64 characters. If empty, then the name returned by getSuggestedStickerSetName will be used automatically

sticker_type

StickerType

Type of the stickers in the set

needs_repainting

Bool

Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only

stickers

list of NewSticker

List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For TGS stickers, uploadStickerFile must be used before the sticker is shown

source

string

Source of the sticker set; may be empty if unknown