Layer 220
method Users
payments.getStarsRevenueStats#d91ffad6 flags:# dark:flags.0?true ton:flags.1?true peer:InputPeer = payments.StarsRevenueStats;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Dark flags.0?true Whether to enable dark theme for graph colors
Ton flags.1?true If set, fetches channel/bot ad revenue statistics in TON.
Peer InputPeer Get statistics for the specified bot, channel or ourselves ( input Peer Self ).

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// PaymentsGetStarsRevenueStats - using Params struct
result, err := client.PaymentsGetStarsRevenueStats(&tg.PaymentsGetStarsRevenueStatsParams{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},

    // Optional fields:
    // Dark: true,
    // Ton: true,
})
if err != nil {
    // handle error
}
// result is *tg.PaymentsStarsRevenueStats