Interface TonTransactionTypeUpgradedGiftSale

The transaction is a sale of an upgraded gift; for regular users only. Subtype of TonTransactionType.

interface TonTransactionTypeUpgradedGiftSale {
    @type: "tonTransactionTypeUpgradedGiftSale";
    commission_per_mille: number;
    commission_toncoin_amount: number;
    gift: UpgradedGift;
    user_id: number;
}

Properties

@type: "tonTransactionTypeUpgradedGiftSale"
commission_per_mille: number

The number of Toncoins received by the Telegram for each 1000 Toncoins received by the seller of the gift.

commission_toncoin_amount: number

The amount of Toncoins that were received by the Telegram; in the smallest units of the currency.

The gift.

user_id: number

Identifier of the user that bought the gift.