Layer 224
constructor

Parameters

Name Type Description
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: "Hello, World!",
    Amount: int64(1234567890),
    CryptoCurrency: "Hello, World!",
    CryptoAmount: int64(1234567890),

    // Optional fields:
    // TransactionId: "Hello, World!",
}