StaticGramBot API

Gift

This object represents a gift that can be sent by the bot.

Поля

idString
Unique identifier of the gift
The sticker that represents the gift
star_countInteger
The number of Telegram Stars that must be paid to send the sticker
upgrade_star_countIntegeroptional
The number of Telegram Stars that must be paid to upgrade the gift to a unique one
is_premiumTrueoptional
True, if the gift can only be purchased by Telegram Premium subscribers
has_colorsTrueoptional
True, if the gift can be used (after being upgraded) to customize a user's appearance
total_countIntegeroptional
The total number of gifts of this type that can be sent by all users; for limited gifts only
remaining_countIntegeroptional
The number of remaining gifts of this type that can be sent by all users; for limited gifts only
personal_total_countIntegeroptional
The total number of gifts of this type that can be sent by the bot; for limited gifts only
The number of remaining gifts of this type that can be sent by the bot; for limited gifts only
Background of the gift
The total number of different unique gifts that can be obtained by upgrading the gift
Information about the chat that published the gift

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

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

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

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