StaticGramBot API

UniqueGift

This object describes a unique gift that was upgraded from a regular gift.

Поля

gift_idString
Identifier of the regular gift from which the gift was upgraded
base_nameString
Human-readable name of the regular gift from which this unique gift was upgraded
nameString
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
numberInteger
Unique number of the upgraded gift among gifts upgraded from the same regular gift
Model of the gift
Symbol of the gift
Backdrop of the gift
is_premiumTrueoptional
True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers
is_burnedTrueoptional
True, if the gift was used to craft another gift and isn't available anymore
is_from_blockchainTrueoptional
True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram
The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only
Information about the chat that published the gift

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

JSON
{
  "gift_id": "...",
  "base_name": "...",
  "name": "...",
  "number": 1,
  "model": {
    "name": "...",
    "sticker": {},
    "rarity_per_mille": 1
  },
  "symbol": {
    "name": "...",
    "sticker": {},
    "rarity_per_mille": 1
  },
  "backdrop": {
    "name": "...",
    "colors": {},
    "rarity_per_mille": 1
  }
}

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

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