Skip to content

Sticker

This object represents a sticker.

Fields

file_idStringRequired
Identifier for this file, which can be used to download or reuse the file
file_unique_idStringRequired
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.
typeStringRequired
Values:regularmaskcustom_emoji
Type 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.
widthIntegerRequired
Sticker width
heightIntegerRequired
Sticker height
is_animatedBooleanRequired
True, if the sticker is animated
is_videoBooleanRequired
True, if the sticker is a video sticker
thumbnailPhotoSizeOptional
Optional. Sticker thumbnail in the .WEBP or .JPG format
emojiStringOptional
Optional. Emoji associated with the sticker
set_nameStringOptional
Optional. Name of the sticker set to which the sticker belongs
premium_animationFileOptional
Optional. For premium regular stickers, premium animation for the sticker
mask_positionMaskPositionOptional
Optional. For mask stickers, the position where the mask should be placed
custom_emoji_idStringOptional
Optional. For custom emoji stickers, unique identifier of the custom emoji
needs_repaintingTrueOptional
Optional. 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_sizeIntegerOptional
Optional. File size in bytes

GramIO Usage

See Also