Layer 220
MessageActionGiftTon
You were gifted some toncoins.
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
MessageActionGogram Example
// Creating MessageActionGiftTon constructor obj := &tg.MessageActionGiftTon{ Currency: "...", Amount: int64(0), CryptoCurrency: "...", CryptoAmount: int64(0), // Optional fields: // TransactionId: "...", }