class Tourmaline::UniqueGift

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

Backdrop of the gift


[View source]
def backdrop=(backdrop : Tourmaline::UniqueGiftBackdrop) #

Backdrop of the gift


[View source]
def base_name : String #

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


[View source]
def base_name=(base_name : String) #

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


[View source]
def 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


[View source]
def 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


[View source]
def gift_id : String #

Identifier of the regular gift from which the gift was upgraded


[View source]
def gift_id=(gift_id : String) #

Identifier of the regular gift from which the gift was upgraded


[View source]
def is_burned=(is_burned : Bool | Nil) #

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


[View source]
def is_burned? : Bool | Nil #

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


[View source]
def 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


[View source]
def 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


[View source]
def is_premium=(is_premium : Bool | Nil) #

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


[View source]
def is_premium? : Bool | Nil #

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


[View source]

Model of the gift


[View source]
def model=(model : Tourmaline::UniqueGiftModel) #

Model of the gift


[View source]
def name : String #

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


[View source]
def name=(name : String) #

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


[View source]
def number : Int32 | Int64 #

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


[View source]
def number=(number : Int32 | Int64) #

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


[View source]
def publisher_chat : Tourmaline::Chat | Nil #

Optional. Information about the chat that published the gift


[View source]
def publisher_chat=(publisher_chat : Tourmaline::Chat | Nil) #

Optional. Information about the chat that published the gift


[View source]

Symbol of the gift


[View source]
def symbol=(symbol : Tourmaline::UniqueGiftSymbol) #

Symbol of the gift


[View source]