giveaway_winners_t

struct banana::api::giveaway_winners_t

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

chat_t chat

The chat that created the giveaway

integer_t giveaway_message_id

Identifier of the message with the giveaway in the chat

integer_t winners_selection_date

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

integer_t winner_count

Total number of winners in the giveaway

array_t<user_t> winners

List of up to 100 winners of the giveaway

optional_t<integer_t> additional_chat_count

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

optional_t<integer_t> premium_subscription_month_count

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

optional_t<integer_t> unclaimed_prize_count

Optional. Number of undistributed prizes

optional_t<boolean_t> only_new_members

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

optional_t<boolean_t> was_refunded

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

optional_t<string_t> prize_description

Optional. Description of additional giveaway prize