class Hamilton::Types::OwnedGiftUnique

Overview

Describes a unique gift received and owned by a user or a chat.

Included Modules

Defined in:

types/owned_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

def can_be_transferred : Bool | Nil #

True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only.


def can_be_transferred=(can_be_transferred : Bool | Nil) #

True, if the gift can be transferred to another owner; for gifts received on behalf of business accounts only.


Information about the unique gift.


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

Information about the unique gift.


def is_saved : Bool | Nil #

True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only.


def is_saved=(is_saved : Bool | Nil) #

True, if the gift is displayed on the account's profile page; for gifts received on behalf of business accounts only.


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 owned_gift_id : String | Nil #

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


def owned_gift_id=(owned_gift_id : String | Nil) #

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


def send_date : Int32 #

Date the gift was sent in Unix time.


def send_date=(send_date : Int32) #

Date the gift was sent in Unix time.


def sender_user : Hamilton::Types::User | Nil #

Sender of the gift if it is a known user.


def sender_user=(sender_user : Hamilton::Types::User | Nil) #

Sender of the gift if it is a known user.


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.


def type : String #

Type of the gift, always "unique".


def type=(type : String) #

Type of the gift, always "unique".