class
Tourmaline::UniqueGift
- Tourmaline::UniqueGift
- Reference
- Object
Overview
This object describes a unique gift that was upgraded from a regular gift.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#backdrop : Tourmaline::UniqueGiftBackdrop
Backdrop of the gift
-
#backdrop=(backdrop : Tourmaline::UniqueGiftBackdrop)
Backdrop of the gift
-
#base_name : String
Human-readable name of the regular gift from which this unique gift was upgraded
-
#base_name=(base_name : String)
Human-readable name of the regular gift from which this unique gift was upgraded
-
#colors : Tourmaline::UniqueGiftColors | Nil
Optional.
-
#colors=(colors : Tourmaline::UniqueGiftColors | Nil)
Optional.
-
#gift_id : String
Identifier of the regular gift from which the gift was upgraded
-
#gift_id=(gift_id : String)
Identifier of the regular gift from which the gift was upgraded
-
#is_burned=(is_burned : Bool | Nil)
Optional.
-
#is_burned? : Bool | Nil
Optional.
-
#is_from_blockchain=(is_from_blockchain : Bool | Nil)
Optional.
-
#is_from_blockchain? : Bool | Nil
Optional.
-
#is_premium=(is_premium : Bool | Nil)
Optional.
-
#is_premium? : Bool | Nil
Optional.
-
#model : Tourmaline::UniqueGiftModel
Model of the gift
-
#model=(model : Tourmaline::UniqueGiftModel)
Model of the gift
-
#name : String
Unique name of the gift.
-
#name=(name : String)
Unique name of the gift.
-
#number : Int32 | Int64
Unique number of the upgraded gift among gifts upgraded from the same regular gift
-
#number=(number : Int32 | Int64)
Unique number of the upgraded gift among gifts upgraded from the same regular gift
-
#publisher_chat : Tourmaline::Chat | Nil
Optional.
-
#publisher_chat=(publisher_chat : Tourmaline::Chat | Nil)
Optional.
-
#symbol : Tourmaline::UniqueGiftSymbol
Symbol of the gift
-
#symbol=(symbol : Tourmaline::UniqueGiftSymbol)
Symbol of the gift
Constructor Detail
Instance Method Detail
Human-readable name of the regular gift from which this unique gift was upgraded
Human-readable name of the regular gift from which this unique gift was upgraded
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
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
Optional. True, if the gift was used to craft another gift and isn't available anymore
Optional. True, if the gift was used to craft another gift and isn't available anymore
Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram
Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas
Unique number of the upgraded gift among gifts upgraded from the same regular gift
Unique number of the upgraded gift among gifts upgraded from the same regular gift
Optional. Information about the chat that published the gift
Optional. Information about the chat that published the gift