Skip to content

StorePaymentPurposeStarGiveaway

Type · TDLib 1.8.67 · d1085f9c

The user creating a Telegram Star giveaway

StorePaymentPurposeStarGiveaway(
  parameters: GiveawayParameters,
  currency: string,
  amount: int53,
  winner_count: int32,
  star_count: int53
) → StorePaymentPurpose

parameters

GiveawayParameters

Giveaway parameters

currency

string

ISO 4217 currency code of the payment currency

amount

int53

Paid amount, in the smallest units of the currency

winner_count

int32

The number of users to receive Telegram Stars

star_count

int53

The number of Telegram Stars to be distributed through the giveaway