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)
#
(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)
Methods#
#additional_chat_count : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. The number of other chats the user had to join in order to be eligible for the giveaway
#additional_chat_count=(additional_chat_count : Int32 | Int64 | Nil)
#
(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
#giveaway_message_id : Int32 | Int64
#
: Int32 | Int64
Identifier of the message with the giveaway in the chat
#giveaway_message_id=(giveaway_message_id : Int32 | Int64)
#
(giveaway_message_id : Int32 | Int64)
Identifier of the message with the giveaway in the chat
#only_new_members=(only_new_members : Bool?)
#
(only_new_members : Bool?)
Optional. True, if only users who had joined the chats after the giveaway started were eligible to win
#only_new_members? : Bool?
#
: Bool?
Optional. True, if only users who had joined the chats after the giveaway started were eligible to win
#premium_subscription_month_count : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for
#premium_subscription_month_count=(premium_subscription_month_count : Int32 | Int64 | Nil)
#
(premium_subscription_month_count : Int32 | Int64 | Nil)
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for
#prize_description=(prize_description : String?)
#
(prize_description : String?)
Optional. Description of additional giveaway prize
#unclaimed_prize_count=(unclaimed_prize_count : Int32 | Int64 | Nil)
#
(unclaimed_prize_count : Int32 | Int64 | Nil)
Optional. Number of undistributed prizes
#was_refunded=(was_refunded : Bool?)
#
(was_refunded : Bool?)
Optional. True, if the giveaway was canceled because the payment for it was refunded
#was_refunded? : Bool?
#
: Bool?
Optional. True, if the giveaway was canceled because the payment for it was refunded
#winners=(winners : Array(Tourmaline::User))
#
(winners : Array(Tourmaline::User))
List of up to 100 winners of the giveaway