Stickers

Sticker

This object represents a sticker.

fields

fieldtyperequireddescription
file_idstringrequiredIdentifier for this file, which can be used to download or reuse the file
file_unique_idstringrequiredUnique 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.
type"regular" | "mask" | "custom_emoji"requiredType of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.
widthnumberrequiredSticker width
heightnumberrequiredSticker height
is_animatedbooleanrequiredTrue, if the sticker is animated
is_videobooleanrequiredTrue, if the sticker is a video sticker
thumbnailPhotoSizeoptionalOptional. Sticker thumbnail in the .WEBP or .JPG format
emojistringoptionalOptional. Emoji associated with the sticker
set_namestringoptionalOptional. Name of the sticker set to which the sticker belongs
premium_animationFileoptionalOptional. For premium regular stickers, premium animation for the sticker
mask_positionMaskPositionoptionalOptional. For mask stickers, the position where the mask should be placed
custom_emoji_idstringoptionalOptional. For custom emoji stickers, unique identifier of the custom emoji
needs_repaintingbooleanoptionalOptional. 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
file_sizenumberoptionalOptional. File size in bytes

import

types.ts
import type { Sticker } from "@yaebal/types";

used by

methods

types