Skip to content

GiveawayInfoCompleted

Type · TDLib 1.8.67 · d1085f9c

Describes a completed giveaway

GiveawayInfoCompleted(
  creation_date: int32,
  actual_winners_selection_date: int32,
  was_refunded: Bool,
  is_winner: Bool,
  winner_count: int32,
  activation_count: int32,
  gift_code: string,
  won_star_count: int53
) → GiveawayInfo

creation_date

int32

Point in time (Unix timestamp) when the giveaway was created

actual_winners_selection_date

int32

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

was_refunded

Bool

True, if the giveaway was canceled and was fully refunded

is_winner

Bool

True, if the current user is a winner of the giveaway

winner_count

int32

Number of winners in the giveaway

activation_count

int32

Number of winners, which activated their gift codes; for Telegram Premium giveaways only

gift_code

string

Telegram Premium gift code that was received by the current user; empty if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Premium giveaway

won_star_count

int53

The Telegram Star amount won by the current user; 0 if the user isn't a winner in the giveaway or the giveaway isn't a Telegram Star giveaway