class Hamilton::Types::GiftInfo

Overview

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

Included Modules

Defined in:

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

def can_be_upgraded : Bool | Nil #

True, if the gift can be upgraded to a unique gift.


def can_be_upgraded=(can_be_upgraded : Bool | Nil) #

True, if the gift can be upgraded to a unique gift.


def convert_star_count : Int32 | Nil #

Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.


def convert_star_count=(convert_star_count : Int32 | Nil) #

Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.


def entities : Array(Hamilton::Types::MessageEntity) | Nil #

Special entities that appear in the text.


def entities=(entities : Array(Hamilton::Types::MessageEntity) | Nil) #

Special entities that appear in the text.


Information about the gift.


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

Information about the gift.


def is_private : Bool | Nil #

True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.


def is_private=(is_private : Bool | Nil) #

True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.


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; 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 prepaid_upgrade_star_count : Int32 | Nil #

Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift.


def prepaid_upgrade_star_count=(prepaid_upgrade_star_count : Int32 | Nil) #

Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift.


def text : String | Nil #

Text of the message that was added to the gift.


def text=(text : String | Nil) #

Text of the message that was added to the gift.