StaticGramBot API

UniqueGiftInfo

Describes a service message about a unique gift that was sent or received.

Поля

Information about the gift
originString
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers.
textStringoptional
Text of the message that was added to the gift
entitiesArray of MessageEntityoptional
Special entities that appear in the text
is_privateTrueoptional
True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
last_resale_currencyStringoptional
For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for TON grams.
last_resale_amountIntegeroptional
For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanograms
owned_gift_idStringoptional
Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
transfer_star_countIntegeroptional
Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
next_transfer_dateIntegeroptional
Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.

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

JSON
{
  "gift": {
    "gift_id": "...",
    "base_name": "...",
    "name": "...",
    "number": 1,
    "model": {},
    "symbol": {},
    "backdrop": {}
  },
  "origin": "..."
}

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

Типы

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