Interface ChatRevenueAmount

Contains information about revenue earned from sponsored messages in a chat.

interface ChatRevenueAmount {
    @type: "chatRevenueAmount";
    available_amount: string;
    balance_amount: string;
    cryptocurrency: string;
    total_amount: string;
    withdrawal_enabled?: boolean;
}

Properties

@type: "chatRevenueAmount"
available_amount: string

Amount of the cryptocurrency available for withdrawal, in the smallest units of the cryptocurrency.

balance_amount: string

Amount of the cryptocurrency that isn't withdrawn yet, in the smallest units of the cryptocurrency.

cryptocurrency: string

Cryptocurrency in which revenue is calculated.

total_amount: string

Total amount of the cryptocurrency earned, in the smallest units of the cryptocurrency.

withdrawal_enabled?: boolean

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