Interface MessageGiveawayWinners

A giveaway with public winners has been completed for the chat. Subtype of MessageContent.

interface MessageGiveawayWinners {
    @type: "messageGiveawayWinners";
    actual_winners_selection_date: number;
    additional_chat_count: number;
    boosted_chat_id: number;
    giveaway_message_id: number;
    only_new_members?: boolean;
    prize: GiveawayPrize;
    prize_description: string;
    unclaimed_prize_count: number;
    was_refunded?: boolean;
    winner_count: number;
    winner_user_ids: number[];
}

Properties

@type: "messageGiveawayWinners"
actual_winners_selection_date: number

Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.

additional_chat_count: number

Number of other chats that participated in the giveaway.

boosted_chat_id: number

Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway.

giveaway_message_id: number

Identifier of the message with the giveaway in the boosted chat.

only_new_members?: boolean

True, if only new members of the chats were eligible for the giveaway.

Prize of the giveaway.

prize_description: string

Additional description of the giveaway prize.

unclaimed_prize_count: number

Number of undistributed prizes; for Telegram Premium giveaways only.

was_refunded?: boolean

True, if the giveaway was canceled and was fully refunded.

winner_count: number

Total number of winners in the giveaway.

winner_user_ids: number[]

Up to 100 user identifiers of the winners of the giveaway.