GramIO API Reference / gramio/dist / TelegramSticker
Interface: TelegramSticker
Defined in: @gramio/types/out/objects.d.ts:6077
This object represents a sticker.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
custom_emoji_id? | string | Optional. For custom emoji stickers, unique identifier of the custom emoji | @gramio/types/out/objects.d.ts:6129 |
emoji? | string | Optional. Emoji associated with the sticker | @gramio/types/out/objects.d.ts:6113 |
file_id | string | Identifier for this file, which can be used to download or reuse the file | @gramio/types/out/objects.d.ts:6081 |
file_size? | number | Optional. File size in bytes | @gramio/types/out/objects.d.ts:6137 |
file_unique_id | 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. | @gramio/types/out/objects.d.ts:6085 |
height | number | Sticker height | @gramio/types/out/objects.d.ts:6097 |
is_animated | boolean | True, if the sticker is animated | @gramio/types/out/objects.d.ts:6101 |
is_video | boolean | True, if the sticker is a video sticker | @gramio/types/out/objects.d.ts:6105 |
mask_position? | TelegramMaskPosition | Optional. For mask stickers, the position where the mask should be placed | @gramio/types/out/objects.d.ts:6125 |
needs_repainting? | true | 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 | @gramio/types/out/objects.d.ts:6133 |
premium_animation? | TelegramFile | Optional. For premium regular stickers, premium animation for the sticker | @gramio/types/out/objects.d.ts:6121 |
set_name? | string | Optional. Name of the sticker set to which the sticker belongs | @gramio/types/out/objects.d.ts:6117 |
thumbnail? | TelegramPhotoSize | Optional. Sticker thumbnail in the .WEBP or .JPG format | @gramio/types/out/objects.d.ts:6109 |
type | TelegramStickerType | 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. | @gramio/types/out/objects.d.ts:6089 |
width | number | Sticker width | @gramio/types/out/objects.d.ts:6093 |