This object represents a message about the completion of a giveaway with public winners.
Constructors
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, prize_star_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)
SourceInstance methods
additional_chat_count
Optional. The number of other chats the user had to join in order to be eligible for the giveaway
Sourceadditional_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
Sourcechat
The chat that created the giveaway
SourceThe chat that created the giveaway
Sourcegiveaway_message_id
Identifier of the message with the giveaway in the chat
Sourcegiveaway_message_id=(giveaway_message_id :
Int32 |
Int64)
Identifier of the message with the giveaway in the chat
Sourceonly_new_members=(only_new_members :
Bool |
Nil)
Optional. True, if only users who had joined the chats after the giveaway started were eligible to win
Sourceonly_new_members?
Optional. True, if only users who had joined the chats after the giveaway started were eligible to win
Sourcepremium_subscription_month_count
Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only
Sourcepremium_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; for Telegram Premium giveaways only
Sourceprize_description
Optional. Description of additional giveaway prize
Sourceprize_description=(prize_description :
String |
Nil)
Optional. Description of additional giveaway prize
Sourceprize_star_count
Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only
Sourceprize_star_count=(prize_star_count :
Int32 |
Int64 |
Nil)
Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only
Sourceunclaimed_prize_count
Optional. Number of undistributed prizes
Sourceunclaimed_prize_count=(unclaimed_prize_count :
Int32 |
Int64 |
Nil)
Optional. Number of undistributed prizes
Sourcewas_refunded=(was_refunded :
Bool |
Nil)
Optional. True, if the giveaway was canceled because the payment for it was refunded
Sourcewas_refunded?
Optional. True, if the giveaway was canceled because the payment for it was refunded
Sourcewinner_count
Total number of winners in the giveaway
SourceTotal number of winners in the giveaway
Sourcewinners
List of up to 100 winners of the giveaway
SourceList of up to 100 winners of the giveaway
Sourcewinners_selection_date
Point in time (Unix timestamp) when winners of the giveaway were selected
Sourcewinners_selection_date=(winners_selection_date :
Time)
Point in time (Unix timestamp) when winners of the giveaway were selected
Source