struct

Telegram::OwnedGiftUnique

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: OwnedGiftUnique Describes a unique gift received and owned by a user or a chat.

Constructors

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

Instance methods

can_be_transferred
clone
Source
copy_with(type _type = @type, gift _gift = @gift, send_date _send_date = @send_date, owned_gift_id _owned_gift_id = @owned_gift_id, sender_user _sender_user = @sender_user, is_saved _is_saved = @is_saved, can_be_transferred _can_be_transferred = @can_be_transferred, transfer_star_count _transfer_star_count = @transfer_star_count, next_transfer_date _next_transfer_date = @next_transfer_date)
Source
gift
is_saved
next_transfer_date
owned_gift_id
send_date
sender_user
transfer_star_count
type