StaticGramBot API

OwnedGiftRegular

Describes a regular gift owned by a user or a chat.

Поля

typeString
Type of the gift, always “regular”
Information about the regular gift
owned_gift_idStringoptional
Unique identifier of the 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
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
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_upgradedTrueoptional
True, if the gift can be upgraded to a unique gift; for gifts received on behalf of business accounts only
was_refundedTrueoptional
True, if the gift was refunded and isn't available anymore
convert_star_countIntegeroptional
Number of Telegram Stars that can be claimed by the receiver instead of the gift; omitted if the gift cannot be converted to Telegram Stars; for gifts received on behalf of business accounts only
Number of Telegram Stars that were paid for the ability to upgrade the gift
True, if the gift's upgrade was purchased after the gift was sent; for gifts received on behalf of business accounts only
unique_gift_numberIntegeroptional
Unique number reserved for this gift when upgraded. See the number field in UniqueGift.

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

JSON
{
  "type": "regular",
  "gift": {
    "id": "...",
    "sticker": {},
    "star_count": 1
  },
  "send_date": 1
}

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

Типы

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