Raw.StarsRevenueStatus
Describes telegram star revenue balances.
starsRevenueStatus#febe5491 flags:# withdrawal_enabled:flags.0?true current_balance:StarsAmount available_balance:StarsAmount overall_revenue:StarsAmount next_withdrawal_at:flags.1?int = StarsRevenueStatus;
export namespace Raw {
export class StarsRevenueStatus {
constructor(params: {
withdrawalEnabled?: boolean;
currentBalance: Raw.TypeStarsAmount;
availableBalance: Raw.TypeStarsAmount;
overallRevenue: Raw.TypeStarsAmount;
nextWithdrawalAt?: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0xfebe5491
Property
withdrawalEnabled
: boolean or undefinedIf set, the user may withdraw up to availableBalance stars.
currentBalance
: Raw.TypeStarsAmountAmount of not-yet-withdrawn telegram stars.
availableBalance
: Raw.TypeStarsAmountAmount of withdrawable telegram stars.
overallRevenue
: Raw.TypeStarsAmountTotal amount of earned telegram stars.
nextWithdrawalAt
: number or undefinedUnixtime indicating when will withdrawal be available to the user. if not set, withdrawal can be started now.