Skip to content

class Tourmaline::ChatBoostSourceGiftCode
inherits Reference #

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

JSON::Serializable

Constructors#

.new(source, user) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#source : String #

Source of the boost, always "gift_code"

View source

#source=(source : String) #

Source of the boost, always "gift_code"

View source

#user : Tourmaline::User #

User for which the gift code was created

View source

#user=(user : Tourmaline::User) #

User for which the gift code was created

View source