Skip to content

setAuthenticationPremiumPurchaseTransaction

Function · TDLib 1.8.67 · d1085f9c

Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase

setAuthenticationPremiumPurchaseTransaction(
  transaction: StoreTransaction,
  is_restore: Bool,
  premium_day_count: int32,
  currency: string,
  amount: int53
) → Ok

transaction

StoreTransaction

Information about the transaction

is_restore

Bool

Pass true if this is a restore of a Telegram Premium purchase; only for App Store

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