Skip to content

checkAuthenticationPremiumPurchase

Function · TDLib 1.8.67 · d1085f9c

Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase

checkAuthenticationPremiumPurchase(
  premium_day_count: int32,
  currency: string,
  amount: int53
) → Ok

premium_day_count

int32

The number of days for which the Telegram Premium subscription will be granted

currency

string

ISO 4217 currency code of the payment currency

amount

int53

Paid amount, in the smallest units of the currency