StaticGramBot API

OwnedGiftUnique

Describes a unique gift received and owned by a user or a chat.

Поля

typeString
Type of the gift, always “unique”
Information about the unique gift
owned_gift_idStringoptional
Unique identifier of the received gift for the bot; for gifts received on behalf of business accounts only
Sender of the gift if it is a known user
send_dateInteger
Date the gift was sent in Unix time
is_savedTrueoptional
True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only
can_be_transferredTrueoptional
True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only
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
{
  "type": "unique",
  "gift": {
    "gift_id": "...",
    "base_name": "...",
    "name": "...",
    "number": 1,
    "model": {},
    "symbol": {},
    "backdrop": {}
  },
  "send_date": 1
}

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

Типы

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