StaticGramBot API

Sticker

This object represents a sticker.

Поля

file_idString
Identifier for this file, which can be used to download or reuse the file
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.
typeString
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.
widthInteger
Sticker width
heightInteger
Sticker height
True, if the sticker is animated
is_videoBoolean
True, if the sticker is a video sticker
Sticker thumbnail in the .WEBP or .JPG format
emojiStringoptional
Emoji associated with the sticker
set_nameStringoptional
Name of the sticker set to which the sticker belongs
For premium regular stickers, premium animation for the sticker
For mask stickers, the position where the mask should be placed
custom_emoji_idStringoptional
For custom emoji stickers, unique identifier of the custom emoji
needs_repaintingTrueoptional
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
File size in bytes

Минимальный JSON

JSON
{
  "file_id": "...",
  "file_unique_id": "...",
  "type": "private",
  "width": 1,
  "height": 1,
  "is_animated": true,
  "is_video": true
}

Где используется

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top