class

Tourmaline::GiveawayWinners

Inherits JSON::Serializable < Reference < Object

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

additional_chat_count

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

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

Source
chat

The chat that created the giveaway

Source
chat=(chat : Tourmaline::Chat)

The chat that created the giveaway

Source
giveaway_message_id

Identifier of the message with the giveaway in the chat

Source
giveaway_message_id=(giveaway_message_id : Int32 | Int64)

Identifier of the message with the giveaway in the chat

Source
only_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

Source
only_new_members?

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

Source
premium_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

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; for Telegram Premium giveaways only

Source
prize_description

Optional. Description of additional giveaway prize

Source
prize_description=(prize_description : String | Nil)

Optional. Description of additional giveaway prize

Source
prize_star_count

Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only

Source
prize_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

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
was_refunded=(was_refunded : Bool | Nil)

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

Source
was_refunded?

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

Source
winner_count

Total number of winners in the giveaway

Source
winner_count=(winner_count : Int32 | Int64)

Total number of winners in the giveaway

Source
winners

List of up to 100 winners of the giveaway

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

List of up to 100 winners of the giveaway

Source
winners_selection_date

Point in time (Unix timestamp) when winners of the giveaway were selected

Source
winners_selection_date=(winners_selection_date : Time)

Point in time (Unix timestamp) when winners of the giveaway were selected

Source