Layer 220
constructor
starsRevenueStatus#febe5491 flags:# withdrawal_enabled:flags.0?true current_balance:StarsAmount available_balance:StarsAmount overall_revenue:StarsAmount next_withdrawal_at:flags.1?int = StarsRevenueStatus;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
WithdrawalEnabled flags.0?true If set, the user may withdraw up to available_balance stars.
CurrentBalance StarsAmount Amount of not-yet-withdrawn Telegram Stars.
AvailableBalance StarsAmount Amount of withdrawable Telegram Stars.
OverallRevenue StarsAmount Total amount of earned Telegram Stars.
NextWithdrawalAt flags.1?int Unixtime indicating when will withdrawal be available to the user. If not set, withdrawal can be started now.

Gogram Example

// Creating StarsRevenueStatus constructor
obj := &tg.StarsRevenueStatus{
    CurrentBalance: &tg.StarsAmount{},
    AvailableBalance: &tg.StarsAmount{},
    OverallRevenue: &tg.StarsAmount{},

    // Optional fields:
    // WithdrawalEnabled: true,
    // NextWithdrawalAt: 0,
}