payments.getStarsRevenueStats
Get Telegram Star revenue statistics ».
Get [Telegram Star revenue statistics »](https://core.telegram.org/api/stars.md).
| Name | Type | Required | Description |
|---|---|---|---|
dark | true | No | Whether to enable dark theme for graph colors |
ton | true | No | If set, fetches channel/bot ad revenue statistics in TON. |
peer | InputPeer | Yes | Get statistics for the specified bot, channel or ourselves ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)). |
Replies
payments.StarsRevenueStats
MTProto RPC
- 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.