Interface StarRevenueStatus

Contains information about Telegram Stars earned by a bot or a chat.

interface StarRevenueStatus {
    @type: "starRevenueStatus";
    available_amount: StarAmount;
    current_amount: StarAmount;
    next_withdrawal_in: number;
    total_amount: StarAmount;
    withdrawal_enabled?: boolean;
}

Properties

@type: "starRevenueStatus"
available_amount: StarAmount

The amount of Telegram Stars that are available for withdrawal.

current_amount: StarAmount

The amount of Telegram Stars that aren't withdrawn yet.

next_withdrawal_in: number

Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.

total_amount: StarAmount

Total amount of Telegram Stars earned.

withdrawal_enabled?: boolean

True, if Telegram Stars can be withdrawn now or later.