class Tourmaline::GiveawayWinners
- Tourmaline::GiveawayWinners
- Reference
- Object
Overview
This object represents a message about the completion of a giveaway with public winners.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(chat : Tourmaline::Chat, giveaway_message_id : Int32 | Int64, winners_selection_date : Time, winner_count : Int32 | Int64, 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 = nil, was_refunded : Bool | Nil = nil, prize_description : String | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#additional_chat_count : Int32 | Int64 | Nil
Optional.
-
#additional_chat_count=(additional_chat_count : Int32 | Int64 | Nil)
Optional.
-
#chat : Tourmaline::Chat
The chat that created the giveaway
-
#chat=(chat : Tourmaline::Chat)
The chat that created the giveaway
-
#giveaway_message_id : Int32 | Int64
Identifier of the messsage with the giveaway in the chat
-
#giveaway_message_id=(giveaway_message_id : Int32 | Int64)
Identifier of the messsage with the giveaway in the chat
-
#only_new_members=(only_new_members : Bool | Nil)
Optional.
-
#only_new_members? : Bool | Nil
Optional.
-
#premium_subscription_month_count : Int32 | Int64 | Nil
Optional.
-
#premium_subscription_month_count=(premium_subscription_month_count : Int32 | Int64 | Nil)
Optional.
-
#prize_description : String | Nil
Optional.
-
#prize_description=(prize_description : String | Nil)
Optional.
-
#unclaimed_prize_count : Int32 | Int64 | Nil
Optional.
-
#unclaimed_prize_count=(unclaimed_prize_count : Int32 | Int64 | Nil)
Optional.
-
#was_refunded=(was_refunded : Bool | Nil)
Optional.
-
#was_refunded? : Bool | Nil
Optional.
-
#winner_count : Int32 | Int64
Total number of winners in the giveaway
-
#winner_count=(winner_count : Int32 | Int64)
Total number of winners in the giveaway
-
#winners : Array(Tourmaline::User)
List of up to 100 winners of the giveaway
-
#winners=(winners : Array(Tourmaline::User))
List of up to 100 winners of the giveaway
- #winners_selection_date : Time
- #winners_selection_date=(winners_selection_date : Time)
Constructor Detail
Instance Method Detail
Optional. The number of other chats the user had to join in order to be eligible for the giveaway
Optional. The number of other chats the user had to join in order to be eligible for the giveaway
Identifier of the messsage with the giveaway in the chat
Optional. True, if only users who had joined the chats after the giveaway started were eligible to win
Optional. True, if only users who had joined the chats after the giveaway started were eligible to win
Optional. Description of additional giveaway prize
Optional. Number of undistributed prizes
Optional. True, if the giveaway was canceled because the payment for it was refunded
Optional. True, if the giveaway was canceled because the payment for it was refunded