Skip to content

class Tourmaline::GiveawayWinners
inherits Reference #

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

Included modules

JSON::Serializable

Constructors#

.new(chat, giveaway_message_id, winners_selection_date, winner_count, winners : Array(Tourmaline::User) = [] of Tourmaline::User, additional_chat_count : Int32 | Int64 | Nil = nil, premium_subscription_month_count : Int32 | Int64 | Nil = nil, unclaimed_prize_count : Int32 | Int64 | Nil = nil, only_new_members : Bool? = nil, was_refunded : Bool? = nil, prize_description : String? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#additional_chat_count : Int32 | Int64 | Nil #

Optional. The number of other chats the user had to join in order to be eligible for the giveaway

View source

#additional_chat_count=(additional_chat_count : Int32 | Int64 | Nil) #

Optional. The number of other chats the user had to join in order to be eligible for the giveaway

View source

#chat : Tourmaline::Chat #

The chat that created the giveaway

View source

#chat=(chat : Tourmaline::Chat) #

The chat that created the giveaway

View source

#giveaway_message_id : Int32 | Int64 #

Identifier of the message with the giveaway in the chat

View source

#giveaway_message_id=(giveaway_message_id : Int32 | Int64) #

Identifier of the message with the giveaway in the chat

View source

#only_new_members=(only_new_members : Bool?) #

Optional. True, if only users who had joined the chats after the giveaway started were eligible to win

View source

#only_new_members? : Bool? #

Optional. True, if only users who had joined the chats after the giveaway started were eligible to win

View source

#premium_subscription_month_count : Int32 | Int64 | Nil #

Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for

View source

#premium_subscription_month_count=(premium_subscription_month_count : Int32 | Int64 | Nil) #

Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for

View source

#prize_description : String? #

Optional. Description of additional giveaway prize

View source

#prize_description=(prize_description : String?) #

Optional. Description of additional giveaway prize

View source

#unclaimed_prize_count : Int32 | Int64 | Nil #

Optional. Number of undistributed prizes

View source

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

Optional. Number of undistributed prizes

View source

#was_refunded=(was_refunded : Bool?) #

Optional. True, if the giveaway was canceled because the payment for it was refunded

View source

#was_refunded? : Bool? #

Optional. True, if the giveaway was canceled because the payment for it was refunded

View source

#winner_count : Int32 | Int64 #

Total number of winners in the giveaway

View source

#winner_count=(winner_count : Int32 | Int64) #

Total number of winners in the giveaway

View source

#winners : Array(Tourmaline::User) #

List of up to 100 winners of the giveaway

View source

#winners=(winners : Array(Tourmaline::User)) #

List of up to 100 winners of the giveaway

View source

#winners_selection_date : Time #

View source

#winners_selection_date=(winners_selection_date : Time) #

View source