Interface GiveawayWinners

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

interface GiveawayWinners {
    additional_chat_count?: number;
    chat: Chat;
    giveaway_message_id: number;
    only_new_members?: true;
    premium_subscription_month_count?: number;
    prize_description?: string;
    unclaimed_prize_count?: number;
    was_refunded?: true;
    winner_count: number;
    winners: User[];
    winners_selection_date: number;
}

Properties

additional_chat_count?: number

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

chat: Chat

The chat that created the giveaway

giveaway_message_id: number

Identifier of the message with the giveaway in the chat

only_new_members?: true

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

premium_subscription_month_count?: number

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

prize_description?: string

Description of additional giveaway prize

unclaimed_prize_count?: number

Number of undistributed prizes

was_refunded?: true

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

winner_count: number

Total number of winners in the giveaway

winners: User[]

List of up to 100 winners of the giveaway

winners_selection_date: number

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