class Hamilton::Types::AcceptedGiftTypes

Overview

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

Included Modules

Defined in:

types/accepted_gift_types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def limited_gifts : Bool #

True, if limited regular gifts are accepted.


def limited_gifts=(limited_gifts : Bool) #

True, if limited regular gifts are accepted.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def premium_subscription : Bool #

True, if a Telegram Premium subscription is accepted.


def premium_subscription=(premium_subscription : Bool) #

True, if a Telegram Premium subscription is accepted.


def unique_gifts : Bool #

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


def unique_gifts=(unique_gifts : Bool) #

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


def unlimited_gifts : Bool #

True, if unlimited regular gifts are accepted.


def unlimited_gifts=(unlimited_gifts : Bool) #

True, if unlimited regular gifts are accepted.