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.


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.