Skip to content

TelegramPaymentPurposePremiumGiveaway

Type · TDLib 1.8.67 · d1085f9c

The user creating a Telegram Premium giveaway

TelegramPaymentPurposePremiumGiveaway(
  parameters: GiveawayParameters,
  currency: string,
  amount: int53,
  winner_count: int32,
  month_count: int32
) → TelegramPaymentPurpose

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

Number of users who will be able to activate the gift codes

month_count

int32

Number of months the Telegram Premium subscription will be active for the users