class

Tourmaline::OwnedGifts

Inherits JSON::Serializable < Reference < Object

Contains the list of gifts received and owned by a user or a chat.

Constructors

new(total_count : Int32 | Int64, gifts : Array(Tourmaline::OwnedGift) = [] of Tourmaline::OwnedGift, next_offset : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

gifts

The list of gifts

Source
gifts=(gifts : Array(Tourmaline::OwnedGift))

The list of gifts

Source
next_offset

Optional. Offset for the next request. If empty, then there are no more results

Source
next_offset=(next_offset : String | Nil)

Optional. Offset for the next request. If empty, then there are no more results

Source
total_count

The total number of gifts owned by the user or the chat

Source
total_count=(total_count : Int32 | Int64)

The total number of gifts owned by the user or the chat

Source