Interface ChatBoostSourceGiveaway

The chat created a giveaway. Subtype of ChatBoostSource.

interface ChatBoostSourceGiveaway {
    @type: "chatBoostSourceGiveaway";
    gift_code: string;
    giveaway_message_id: number;
    is_unclaimed?: boolean;
    star_count: number;
    user_id: number;
}

Properties

@type: "chatBoostSourceGiveaway"
gift_code: string

The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise; for Telegram Premium giveways only.

giveaway_message_id: number

Identifier of the corresponding giveaway message; can be an identifier of a deleted message.

is_unclaimed?: boolean

True, if the winner for the corresponding giveaway prize wasn't chosen, because there were not enough participants.

star_count: number

Number of Telegram Stars distributed among winners of the giveaway.

user_id: number

Identifier of a user that won in the giveaway; 0 if none.