class

Tourmaline::GiveawayCompleted

Inherits JSON::Serializable < Reference < Object

This object represents a service message about the completion of a giveaway without public winners.

Constructors

new(winner_count : Int32 | Int64, unclaimed_prize_count : Int32 | Int64 | Nil = nil, giveaway_message : Tourmaline::Message | Nil = nil, is_star_giveaway : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

giveaway_message

Optional. Message with the giveaway that was completed, if it wasn't deleted

Source
giveaway_message=(giveaway_message : Tourmaline::Message | Nil)

Optional. Message with the giveaway that was completed, if it wasn't deleted

Source
is_star_giveaway=(is_star_giveaway : Bool | Nil)

Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

Source
is_star_giveaway?

Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.

Source
unclaimed_prize_count

Optional. Number of undistributed prizes

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

Optional. Number of undistributed prizes

Source
winner_count

Number of winners in the giveaway

Source
winner_count=(winner_count : Int32 | Int64)

Number of winners in the giveaway

Source