class Tourmaline::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:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, user : Tourmaline::User) #

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

[View source]

Instance Method Detail

def source : String #

Source of the boost, always "gift_code"


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

Source of the boost, always "gift_code"


[View source]
def user : Tourmaline::User #

User for which the gift code was created


[View source]
def user=(user : Tourmaline::User) #

User for which the gift code was created


[View source]