Sticker

A sticker.

PROPERTIES
fileId: string

A file identifier that can be used to download or reuse this file.

fileUniqueId: string

A file identifier that can be used to identify this file.

type: "regular" | "mask" | "customEmoji"

Type of the sticker, currently one of “regular”, “mask”, “customEmoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.

width: number

Sticker width

height: number

Sticker height

isAnimated: boolean

True, if the sticker is animated

isVideo: boolean

True, if the sticker is a video sticker

thumbnails: Thumbnail[]

Sticker thumbnail in the .WEBP or .JPG format

emoji?: string

Emoji associated with the sticker

setName?: string

Name of the sticker set to which the sticker belongs

premiumAnimation?: File

For premium regular stickers, premium animation for the sticker

maskPosition?: MaskPosition

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

customEmojiId?: string

For custom emoji stickers, unique identifier of the custom emoji

needsRepainting?: boolean

True, 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

fileSize?: number

File size in bytes