Layer 220
constructor
inputStorePaymentAuthCode#9bb2636d flags:# restore:flags.0?true phone_number:string phone_code_hash:string currency:string amount:long = InputStorePaymentPurpose;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Restore flags.0?true Set this flag to restore a previously made purchase.
PhoneNumber string Phone number.
PhoneCodeHash string phone_code_hash returned by auth. send Code.
Currency string Three-letter ISO 4217 currency code
Amount long Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies. json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Gogram Example

// Creating InputStorePaymentAuthCode constructor
obj := &tg.InputStorePaymentAuthCode{
    PhoneNumber: "...",
    PhoneCodeHash: "...",
    Currency: "...",
    Amount: int64(0),

    // Optional fields:
    // Restore: true,
}