Layer 227
MessageActionGiftTon
You were gifted some Grams.
constructor
messageActionGiftTon#a8a3c699 flags:# currency:string amount:long crypto_currency:string crypto_amount:long transaction_id:flags.0?string = MessageAction;
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 nanogram). |
| TransactionId | flags .0? string | Transaction ID. |
Returns
MessageActionGogram Example
// Creating MessageActionGiftTon constructor obj := &tg.MessageActionGiftTon{ Currency: "Hello, World!", Amount: int64(1234567890), CryptoCurrency: "Hello, World!", CryptoAmount: int64(1234567890), TransactionId: "Hello, World!", }