class Hamilton::Types::UniqueGiftInfo

Overview

Describes a service message about a unique gift that was sent or received.

Included Modules

Defined in:

types/unique_gift_info.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

Information about the gift.


def gift=(gift : Hamilton::Types::UniqueGift) #

Information about the gift.


def last_resale_star_count : Int32 | Nil #

For gifts bought from other users, the price paid for the gift.


def last_resale_star_count=(last_resale_star_count : Int32 | Nil) #

For gifts bought from other users, the price paid for the gift.


def next_transfer_date : Int32 | Nil #

Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.


def next_transfer_date=(next_transfer_date : Int32 | Nil) #

Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.


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 origin : String #

Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users.


def origin=(origin : String) #

Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users.


def owned_gift_id : String | Nil #

Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.


def owned_gift_id=(owned_gift_id : String | Nil) #

Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.


def transfer_star_count : Int32 | Nil #

Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.


def transfer_star_count=(transfer_star_count : Int32 | Nil) #

Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.