Constructor: messageActionGiftTon
You were gifted some toncoins.
This service message should be displayed below the appropriate sticker from the inputStickerSetTonGifts » stickerset »:
- If
crypto_amount <= 10_000_000_000, choose the sticker with emoji equal to “2️⃣” - If
crypto_amount <= 50_000_000_000, choose the sticker with emoji equal to “1️⃣” - Otherwise, choose the sticker with emoji equal to “3️⃣”
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| currency | string | Yes | Name of a localized FIAT currency. |
| amount | long | Yes | FIAT currency equivalent (in the currency specified in currency) of the amount specified in crypto_amount. |
| crypto_currency | string | Yes | Name of the cryptocurrency. |
| crypto_amount | long | Yes | Amount in the smallest unit of the cryptocurrency (for TONs, one billionth of a ton, AKA a nanoton). |
| transaction_id | string | Optional | Transaction ID. |
Type: MessageAction
Example:
$messageActionGiftTon = ['_' => 'messageActionGiftTon', 'currency' => 'string', 'amount' => long, 'crypto_currency' => 'string', 'crypto_amount' => long, 'transaction_id' => 'string'];