payments.getStarsStatus
获取当前账户的当前 Telegram Stars 余额(peer=inputPeerSelf),或者`peer`中指定的机器人或频道的 stars 余额。
获取当前账户的当前[Telegram Stars 余额](https://core.telegram.org/api/stars.md)(peer=[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md))],或`peer`中指定的机器人或频道的stars 余额。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
ton | true | 否 | 如果设置,则返回频道/广告收入余额(以纳克为单位)。 |
peer | InputPeer | 是的 | 其中同行获得余额。 |
回应
payments.StarsStatus
MTProto RPC
- 403 · BOT_ACCESS_FORBIDDEN — 指定的方法 *可以* 通过 [业务连接](https://core.telegram.org/api/bots/connected-business-bots.md) 使用某些操作,但指定的查询尝试执行业务连接上不允许的操作。
- 400 · BUSINESS_CONNECTION_INVALID — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 connection_id 无效。
- 400 · PEER_ID_INVALID — 提供的对等 ID 无效。