Sticker
This object represents a sticker.
fields
| field | type | required | description |
|---|---|---|---|
file_id | string | required | Identifier for this file, which can be used to download or reuse the file |
file_unique_id | string | required | 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. |
type | "regular" | "mask" | "custom_emoji" | required | 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. |
width | number | required | Sticker width |
height | number | required | Sticker height |
is_animated | boolean | required | True, if the sticker is animated |
is_video | boolean | required | True, if the sticker is a video sticker |
thumbnail | PhotoSize | optional | Optional. Sticker thumbnail in the .WEBP or .JPG format |
emoji | string | optional | Optional. Emoji associated with the sticker |
set_name | string | optional | Optional. Name of the sticker set to which the sticker belongs |
premium_animation | File | optional | Optional. For premium regular stickers, premium animation for the sticker |
mask_position | MaskPosition | optional | Optional. For mask stickers, the position where the mask should be placed |
custom_emoji_id | string | optional | Optional. For custom emoji stickers, unique identifier of the custom emoji |
needs_repainting | boolean | optional | 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_size | number | optional | Optional. File size in bytes |
import
import type { Sticker } from "@yaebal/types";used by
methods
types
official Bot API docs: https://core.telegram.org/bots/api/#sticker