struct

Telegram::Gift

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: Gift This object represents a gift that can be sent by the bot.

Constructors

new(id : String, sticker : Sticker, star_count : Int64, upgrade_star_count : Int64 | Nil = nil, total_count : Int64 | Nil = nil, remaining_count : Int64 | Nil = nil, publisher_chat : Chat | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(id _id = @id, sticker _sticker = @sticker, star_count _star_count = @star_count, upgrade_star_count _upgrade_star_count = @upgrade_star_count, total_count _total_count = @total_count, remaining_count _remaining_count = @remaining_count, publisher_chat _publisher_chat = @publisher_chat)
Source
id
publisher_chat
remaining_count
star_count
sticker
total_count
upgrade_star_count