Layer 220
constructor

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Currency string Name of a localized FIAT currency.
Amount long FIAT currency equivalent (in the currency specified in currency ) of the amount specified in crypto_amount.
CryptoCurrency string Name of the cryptocurrency.
CryptoAmount long Amount in the smallest unit of the cryptocurrency (for TONs, one billionth of a ton, AKA a nanoton).
TransactionId flags.0?string Transaction ID.

Returns

MessageAction

Gogram Example

// Creating MessageActionGiftTon constructor
obj := &tg.MessageActionGiftTon{
    Currency: "...",
    Amount: int64(0),
    CryptoCurrency: "...",
    CryptoAmount: int64(0),

    // Optional fields:
    // TransactionId: "...",
}