class
Tourmaline::OwnedGifts
- Tourmaline::OwnedGifts
- Reference
- Object
Overview
Contains the list of gifts received and owned by a user or a chat.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(total_count : Int32 | Int64, gifts : Array(Tourmaline::OwnedGift) = [] of Tourmaline::OwnedGift, next_offset : String | Nil = nil)
Instance Method Summary
-
#gifts : Array(Tourmaline::OwnedGift)
The list of gifts
-
#gifts=(gifts : Array(Tourmaline::OwnedGift))
The list of gifts
-
#next_offset : String | Nil
Optional.
-
#next_offset=(next_offset : String | Nil)
Optional.
-
#total_count : Int32 | Int64
The total number of gifts owned by the user or the chat
-
#total_count=(total_count : Int32 | Int64)
The total number of gifts owned by the user or the chat
Constructor Detail
def self.new(total_count : Int32 | Int64, gifts : Array(Tourmaline::OwnedGift) = [] of Tourmaline::OwnedGift, next_offset : String | Nil = nil)
#
Instance Method Detail
def next_offset : String | Nil
#
Optional. Offset for the next request. If empty, then there are no more results
def next_offset=(next_offset : String | Nil)
#
Optional. Offset for the next request. If empty, then there are no more results
def total_count=(total_count : Int32 | Int64)
#
The total number of gifts owned by the user or the chat