A sticker set (aka sticker pack)

Constructors

Properties

isFull: boolean

Whether this object contains information about stickers inside the set

Accessors

  • get count(): number
  • Number of stickers in this sticker set

    Returns number

  • get covers(): readonly Sticker[]
  • Cover stickers of the sticker set. Not the same as thumbnails

    Returns readonly Sticker[]

  • get installedDate(): null | Date
  • Date when this sticker set was installed

    Returns null | Date

  • get isArchived(): boolean
  • Whether this sticker set was archived (due to too many saved stickers in the current account)

    Returns boolean

  • get isCreator(): boolean
  • Whether this sticker set was created by the current user

    Returns boolean

  • get isOfficial(): boolean
  • Whether this stickerset is official

    Returns boolean

  • get shortName(): string
  • Short name of sticker set to use in tg://addstickers?set=short_name or https://t.me/addstickers/short_name

    Returns string

  • get stickers(): readonly StickerInfo[]
  • List of stickers inside this sticker set

    Returns readonly StickerInfo[]

    MtEmptyError In case this object does not contain info about stickers (i.e. isFull = false)

  • get thumbnails(): readonly Thumbnail[]
  • Available sticker set thumbnails.

    Returns empty array if not available (i.e. first sticker should be used as thumbnail)

    Returns readonly Thumbnail[]

  • get title(): string
  • Title of the sticker set

    Returns string

  • get type(): StickerType
  • Type of the stickers in this set

    Returns StickerType

Methods

  • Find stickers given their emoji.

    Parameters

    • emoji: string

      Emoji to search for

    Returns StickerInfo[]

    MtEmptyError In case this object does not contain info about stickers (i.e. isFull = false)

  • Get a sticker set thumbnail by its type.

    Thumbnail types are described in the Telegram docs, and are also available as static members of Thumbnail for convenience.

    Parameters

    • type: string

      Thumbnail type

    Returns null | Thumbnail