class

Tourmaline::ChatBoostSourceGiveaway

Inherits JSON::Serializable < Reference < Object

The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize_star_count / 500 times for one year for Telegram Star giveaways.

Constructors

new(source : String, giveaway_message_id : Int32 | Int64, user : Tourmaline::User | Nil = nil, prize_star_count : Int32 | Int64 | Nil = nil, is_unclaimed : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

giveaway_message_id

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.

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.

Source
is_unclaimed=(is_unclaimed : Bool | Nil)

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

Source
is_unclaimed?

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

Source
prize_star_count

Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only

Source
prize_star_count=(prize_star_count : Int32 | Int64 | Nil)

Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only

Source
source

Source of the boost, always "giveaway"

Source
source=(source : String)

Source of the boost, always "giveaway"

Source
user

Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only

Source
user=(user : Tourmaline::User | Nil)

Optional. User that won the prize in the giveaway if any; for Telegram Premium giveaways only

Source