class

Tourmaline::OwnedGiftUnique

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(type : String, gift : Tourmaline::UniqueGift, send_date : Time, owned_gift_id : String | Nil = nil, sender_user : Tourmaline::User | Nil = nil, is_saved : Bool | Nil = nil, can_be_transferred : Bool | Nil = nil, transfer_star_count : Int32 | Int64 | Nil = nil, next_transfer_date : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

can_be_transferred=(can_be_transferred : Bool | Nil)

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

Source
can_be_transferred?

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

Source
gift

Information about the unique gift

Source

Information about the unique gift

Source
is_saved=(is_saved : Bool | Nil)

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

Source
is_saved?

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

Source
next_transfer_date

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

Source
next_transfer_date=(next_transfer_date : Time | Nil)

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

Source
owned_gift_id

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

Source
owned_gift_id=(owned_gift_id : String | Nil)

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

Source
send_date

Date the gift was sent in Unix time

Source
send_date=(send_date : Time)

Date the gift was sent in Unix time

Source
sender_user

Optional. Sender of the gift if it is a known user

Source
sender_user=(sender_user : Tourmaline::User | Nil)

Optional. Sender of the gift if it is a known user

Source
transfer_star_count

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

Source
transfer_star_count=(transfer_star_count : Int32 | Int64 | Nil)

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

Source
type

Type of the gift, always "unique"

Source
type=(type : String)

Type of the gift, always "unique"

Source