Interface TonTransactionTypeUpgradedGiftSale

The transaction is a sale of an upgraded gift. Subtype of TonTransactionType.

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

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 Toncoin amount that was received by the Telegram; in the smallest units of the currency.

The gift.

user_id: number

Identifier of the user that bought the gift.

via_offer?: boolean

True, if the gift was sold through a purchase offer.