class Hamilton::Types::ChatBoostSourceGiftCode

Overview

The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.

Included Modules

Defined in:

types/chat_boost_source.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 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 source : String #

Source of the boost, always "gift_code".


def source=(source : String) #

Source of the boost, always "gift_code".


User for which the gift code was created.


def user=(user : Hamilton::Types::User) #

User for which the gift code was created.