class Tourmaline::AcceptedGiftTypes

Overview

This object describes the types of gifts that can be gifted to a user or a chat.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(unlimited_gifts : Bool, limited_gifts : Bool, unique_gifts : Bool, premium_subscription : Bool, gifts_from_channels : Bool) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def gifts_from_channels=(gifts_from_channels : Bool) #

True, if transfers of unique gifts from channels are accepted


[View source]
def gifts_from_channels? : Bool #

True, if transfers of unique gifts from channels are accepted


[View source]
def limited_gifts=(limited_gifts : Bool) #

True, if limited regular gifts are accepted


[View source]
def limited_gifts? : Bool #

True, if limited regular gifts are accepted


[View source]
def premium_subscription=(premium_subscription : Bool) #

True, if a Telegram Premium subscription is accepted


[View source]
def premium_subscription? : Bool #

True, if a Telegram Premium subscription is accepted


[View source]
def unique_gifts=(unique_gifts : Bool) #

True, if unique gifts or gifts that can be upgraded to unique for free are accepted


[View source]
def unique_gifts? : Bool #

True, if unique gifts or gifts that can be upgraded to unique for free are accepted


[View source]
def unlimited_gifts=(unlimited_gifts : Bool) #

True, if unlimited regular gifts are accepted


[View source]
def unlimited_gifts? : Bool #

True, if unlimited regular gifts are accepted


[View source]