TgKit library and website are still in early development!

Sticker Class

extends Base

Internal class that provides an access to the client instance to most structures

Properties

client Client

See the code

customEmojiId string

For custom emoji stickers, unique identifier of the custom emoji

See the code

emoji string

Emoji associated with the sticker

See the code

fileId string

Identifier for this file, which can be used to download or reuse the file

See the code

fileSize number

File size in bytes

See the code

fileUniqueId string

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

See the code

height number

Sticker height

See the code

isAnimated boolean

*true*, if the sticker is animated

See the code

isVideo boolean

*true*, if the sticker is a video

See the code

maskPosition MaskPosition

For mask stickers, the position where the mask should be placed

See the code

needsRepainting boolean

If the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status white color on chat photos, or another appropriate color in other places

See the code

premiumAnimation File

For premium regular stickers, premium animation for the sticker

See the code

setName string

Name of the sticker set to which the sticker belongs

See the code

thumbnail PhotoSize

Sticker thumbnail in the .WEBP or .JPG format

See the code

type StickerType

Type of the sticker. The type of the sticker is independent from its format, which is determined by the fields

See the code

width number

Sticker width

See the code