set_authentication_premium_purchase_transaction


Description:

public async Ok set_authentication_premium_purchase_transaction (StoreTransaction transaction, bool is_restore, string currency, int64 amount) throws TDLibError

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

Parameters:

transaction

Information about the transaction

is_restore

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

currency

ISO 4217 currency code of the payment currency

amount

Paid amount, in the smallest units of the currency