class Tourmaline::OwnedGifts

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(total_count : Int32 | Int64, gifts : Array(Tourmaline::OwnedGift) = [] of Tourmaline::OwnedGift, next_offset : String | Nil = nil) #

[View source]

Instance Method Detail

def gifts : Array(Tourmaline::OwnedGift) #

The list of gifts


[View source]
def gifts=(gifts : Array(Tourmaline::OwnedGift)) #

The list of gifts


[View source]
def next_offset : String | Nil #

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


[View source]
def next_offset=(next_offset : String | Nil) #

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


[View source]
def total_count : Int32 | Int64 #

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


[View source]
def total_count=(total_count : Int32 | Int64) #

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


[View source]