struct

Telegram::OwnedGiftRegular

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: OwnedGiftRegular Describes a regular gift owned by a user or a chat.

Constructors

new(type : String, gift : Gift, send_date : Int64, owned_gift_id : String | Nil = nil, sender_user : User | Nil = nil, text : String | Nil = nil, entities : Array(MessageEntity) | Nil = nil, is_private : Bool | Nil = nil, is_saved : Bool | Nil = nil, can_be_upgraded : Bool | Nil = nil, was_refunded : Bool | Nil = nil, convert_star_count : Int64 | Nil = nil, prepaid_upgrade_star_count : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

can_be_upgraded
clone
Source
convert_star_count
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, text _text = @text, entities _entities = @entities, is_private _is_private = @is_private, is_saved _is_saved = @is_saved, can_be_upgraded _can_be_upgraded = @can_be_upgraded, was_refunded _was_refunded = @was_refunded, convert_star_count _convert_star_count = @convert_star_count, prepaid_upgrade_star_count _prepaid_upgrade_star_count = @prepaid_upgrade_star_count)
Source
entities
gift
is_private
is_saved
owned_gift_id
prepaid_upgrade_star_count
send_date
sender_user
text
type
was_refunded