Skip to content

ChatBoostSourceGiveaway

Type · TDLib 1.8.67 · d1085f9c

The chat created a giveaway

ChatBoostSourceGiveaway(
  user_id: int53,
  gift_code: string,
  star_count: int53,
  giveaway_message_id: int53,
  is_unclaimed: Bool
) → ChatBoostSource

user_id

int53

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

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

star_count

int53

Number of Telegram Stars distributed among winners of the giveaway

giveaway_message_id

int53

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

is_unclaimed

Bool

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