class Tourmaline::ChatBoost

Overview

This object contains information about a chat boost.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(boost_id : String, add_date : Time, expiration_date : Time, source : Tourmaline::ChatBoostSourceGiftCode | Tourmaline::ChatBoostSourceGiveaway | Tourmaline::ChatBoostSourcePremium) #

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

[View source]

Instance Method Detail

def add_date : Time #

[View source]
def add_date=(add_date : Time) #

[View source]
def boost_id : String #

Unique identifier of the boost


[View source]
def boost_id=(boost_id : String) #

Unique identifier of the boost


[View source]
def expiration_date : Time #

[View source]
def expiration_date=(expiration_date : Time) #

[View source]

Source of the added boost


[View source]
def source=(source : Tourmaline::ChatBoostSource) #

Source of the added boost


[View source]