Skip to content

GramIO API Reference / gramio/dist / TelegramSticker

Interface: TelegramSticker

Defined in: @gramio/types/out/objects.d.ts:6935

This object represents a sticker.

Documentation

Properties

PropertyTypeDescriptionDefined in
custom_emoji_id?stringOptional. For custom emoji stickers, unique identifier of the custom emoji@gramio/types/out/objects.d.ts:6987
emoji?stringOptional. Emoji associated with the sticker@gramio/types/out/objects.d.ts:6971
file_idstringIdentifier for this file, which can be used to download or reuse the file@gramio/types/out/objects.d.ts:6939
file_size?numberOptional. File size in bytes@gramio/types/out/objects.d.ts:6995
file_unique_idstringUnique 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.@gramio/types/out/objects.d.ts:6943
heightnumberSticker height@gramio/types/out/objects.d.ts:6955
is_animatedbooleanTrue, if the sticker is animated@gramio/types/out/objects.d.ts:6959
is_videobooleanTrue, if the sticker is a video sticker@gramio/types/out/objects.d.ts:6963
mask_position?TelegramMaskPositionOptional. For mask stickers, the position where the mask should be placed@gramio/types/out/objects.d.ts:6983
needs_repainting?trueOptional. 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@gramio/types/out/objects.d.ts:6991
premium_animation?TelegramFileOptional. For premium regular stickers, premium animation for the sticker@gramio/types/out/objects.d.ts:6979
set_name?stringOptional. Name of the sticker set to which the sticker belongs@gramio/types/out/objects.d.ts:6975
thumbnail?TelegramPhotoSizeOptional. Sticker thumbnail in the .WEBP or .JPG format@gramio/types/out/objects.d.ts:6967
typeTelegramStickerTypeType 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.@gramio/types/out/objects.d.ts:6947
widthnumberSticker width@gramio/types/out/objects.d.ts:6951