Skip to content

class Tourmaline::ChatBoostSourceGiveaway
inherits Reference #

The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.

Included modules

JSON::Serializable

Constructors#

.new(source, giveaway_message_id, user : Tourmaline::User? = nil, is_unclaimed : Bool? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#giveaway_message_id : Int32 | Int64 #

Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.

View source

#giveaway_message_id=(giveaway_message_id : Int32 | Int64) #

Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.

View source

#is_unclaimed=(is_unclaimed : Bool?) #

Optional. True, if the giveaway was completed, but there was no user to win the prize

View source

#is_unclaimed? : Bool? #

Optional. True, if the giveaway was completed, but there was no user to win the prize

View source

#source : String #

Source of the boost, always "giveaway"

View source

#source=(source : String) #

Source of the boost, always "giveaway"

View source

#user : Tourmaline::User? #

Optional. User that won the prize in the giveaway if any

View source

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

Optional. User that won the prize in the giveaway if any

View source