Interface StarTransaction

Describes a Telegram Star transaction.

interface StarTransaction {
    amount: number;
    date: number;
    id: string;
    receiver?: TransactionPartner;
    source?: TransactionPartner;
}

Properties

amount: number

Number of Telegram Stars transferred by the transaction

date: number

Date the transaction was created in Unix time

id: string

Unique identifier of the transaction. Coincides with the identifer of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.

Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions

Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions