class Hamilton::Types::UniqueGift

Overview

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

Included Modules

Defined in:

types/unique_gift.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

Backdrop of the gift.


def backdrop=(backdrop : Hamilton::Types::UniqueGiftBackdrop) #

Backdrop of the gift.


def base_name : String #

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


def base_name=(base_name : String) #

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


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.


def colors=(colors : Hamilton::Types::UniqueGiftColors | Nil) #

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.


def gift_id : String #

Identifier of the regular gift from which the gift was upgraded.


def gift_id=(gift_id : String) #

Identifier of the regular gift from which the gift was upgraded.


def is_from_blockchain : Bool | Nil #

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


def is_from_blockchain=(is_from_blockchain : Bool | Nil) #

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


def is_premium : Bool | Nil #

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


def is_premium=(is_premium : Bool | Nil) #

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


Model of the gift.


def model=(model : Hamilton::Types::UniqueGiftModel) #

Model of the gift.


def name : String #

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


def name=(name : String) #

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


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def number : Int32 #

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


def number=(number : Int32) #

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


def publisher_chat : Hamilton::Types::Chat #

Information about the chat that published the gift.


def publisher_chat=(publisher_chat : Hamilton::Types::Chat) #

Information about the chat that published the gift.


Symbol of the gift.


def symbol=(symbol : Hamilton::Types::UniqueGiftSymbol) #

Symbol of the gift.