UniqueGift
This object describes a unique gift that was upgraded from a regular gift.
fields
| field | type | required | description |
|---|---|---|---|
gift_id | string | required | Identifier of the regular gift from which the gift was upgraded |
base_name | string | required | Human-readable name of the regular gift from which this unique gift was upgraded |
name | string | required | Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas. |
number | number | required | Unique number of the upgraded gift among gifts upgraded from the same regular gift |
model | UniqueGiftModel | required | Model of the gift |
symbol | UniqueGiftSymbol | required | Symbol of the gift |
backdrop | UniqueGiftBackdrop | required | Backdrop of the gift |
is_premium | boolean | optional | Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers |
is_burned | boolean | optional | Optional. True, if the gift was used to craft another gift and isn't available anymore |
is_from_blockchain | boolean | optional | Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram |
colors | UniqueGiftColors | optional | Optional. 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 |
publisher_chat | Chat | optional | Optional. Information about the chat that published the gift |
import
import type { UniqueGift } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#uniquegift