class

Tourmaline::UniqueGift

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(gift_id : String, base_name : String, name : String, number : Int32 | Int64, model : Tourmaline::UniqueGiftModel, symbol : Tourmaline::UniqueGiftSymbol, backdrop : Tourmaline::UniqueGiftBackdrop, is_premium : Bool | Nil = nil, is_burned : Bool | Nil = nil, is_from_blockchain : Bool | Nil = nil, colors : Tourmaline::UniqueGiftColors | Nil = nil, publisher_chat : Tourmaline::Chat | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

backdrop

Backdrop of the gift

Source
backdrop=(backdrop : Tourmaline::UniqueGiftBackdrop)

Backdrop of the gift

Source
base_name

Human-readable name of the regular gift from which this unique gift was upgraded

Source
base_name=(base_name : String)

Human-readable name of the regular gift from which this unique gift was upgraded

Source
colors

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

Source
colors=(colors : Tourmaline::UniqueGiftColors | Nil)

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

Source
gift_id

Identifier of the regular gift from which the gift was upgraded

Source
gift_id=(gift_id : String)

Identifier of the regular gift from which the gift was upgraded

Source
is_burned=(is_burned : Bool | Nil)

Optional. True, if the gift was used to craft another gift and isn't available anymore

Source
is_burned?

Optional. True, if the gift was used to craft another gift and isn't available anymore

Source
is_from_blockchain=(is_from_blockchain : Bool | Nil)

Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram

Source
is_from_blockchain?

Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram

Source
is_premium=(is_premium : Bool | Nil)

Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers

Source
is_premium?

Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers

Source
model

Model of the gift

Source

Model of the gift

Source
name

Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas

Source
name=(name : String)

Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas

Source
number

Unique number of the upgraded gift among gifts upgraded from the same regular gift

Source
number=(number : Int32 | Int64)

Unique number of the upgraded gift among gifts upgraded from the same regular gift

Source
publisher_chat

Optional. Information about the chat that published the gift

Source
publisher_chat=(publisher_chat : Tourmaline::Chat | Nil)

Optional. Information about the chat that published the gift

Source
symbol

Symbol of the gift

Source

Symbol of the gift

Source