payments.getStarsStatus
Get the current Telegram Stars balance of the current account (with peer=inputPeerSelf), or the stars balance of the bot or channel specified in `peer`.
Get the current [Telegram Stars balance](https://core.telegram.org/api/stars.md) of the current account (with peer=[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)), or the stars balance of the bot or channel specified in `peer`.
| Name | Type | Required | Description |
|---|---|---|---|
ton | true | No | If set, returns the channel/ad revenue balance in nanograms. |
peer | InputPeer | Yes | Peer of which to get the balance. |
Responses
payments.StarsStatus
MTProto RPC
- 403 · BOT_ACCESS_FORBIDDEN — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.
- 400 · BUSINESS_CONNECTION_INVALID — The connection_id passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.