Raw.StarsRevenueStatus

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 undefined

    If set, the user may withdraw up to availableBalance stars.

  • currentBalance : Raw.TypeStarsAmount

    Amount of not-yet-withdrawn telegram stars.

  • availableBalance : Raw.TypeStarsAmount

    Amount of withdrawable telegram stars.

  • overallRevenue : Raw.TypeStarsAmount

    Total amount of earned telegram stars.

  • nextWithdrawalAt : number or undefined

    Unixtime indicating when will withdrawal be available to the user. if not set, withdrawal can be started now.