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 | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
ton | true | Nein | If set, returns the channel/ad revenue balance in nanograms. |
peer | InputPeer | Ja | Peer of which to get the balance. |
Antworten
payments.StarsStatus
MTProto RPC
- 403 · BOT_ACCESS_FORBIDDEN – Die angegebene Methode *kann* für einige Vorgänge über eine [Geschäftsverbindung](https://core.telegram.org/api/bots/connected-business-bots.md)] verwendet werden, aber die angegebene Abfrage hat einen Vorgang versucht, der über eine Geschäftsverbindung nicht zulässig ist.
- 400 · BUSINESS_CONNECTION_INVALID – Die an den Wrapping-Aufruf [invokeWithBusinessConnection](https://core.telegram.org/api/business.md)] übergebene connection_id ist ungültig.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.