Layer 227
PaymentsGetStarsRevenueStats
Get Telegram Star revenue statistics.
method
Users
payments.getStarsRevenueStats#d91ffad6 flags:# dark:flags.0?true ton:flags.1?true peer:InputPeer = payments.StarsRevenueStats;
Parameters
| Name | Type | Description |
|---|---|---|
| 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 ). |
Returns
payments.StarsRevenueStatsGogram Example
// PaymentsGetStarsRevenueStats - positional arguments result, err := client.PaymentsGetStarsRevenueStats(nil, nil, &tg.InputPeerUser{UserID: int64(777000)}) if err != nil { // handle error } // result is *tg.PaymentsStarsRevenueStats
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |