Interface TonTransactionTypeUpgradedGiftSale

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

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

Properties

@type: "tonTransactionTypeUpgradedGiftSale"
commission_gram_amount: number

The Gram amount that was received by the Telegram; in the smallest units of the currency.

commission_per_mille: number

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

The gift.

user_id: number

Identifier of the user who bought the gift.

via_offer?: boolean

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