payments.GetStarsStatus
- class pyrogram.raw.functions.payments.GetStarsStatus
Get the current Telegram Stars balance of the current account (with peer=inputPeerSelf), or the stars balance of the bot specified in peer.
- Details:
Layer:
223ID:
4EA9B3BF
- Parameters:
peer (
InputPeer) – Peer of which to get the balance.ton (
bool, optional) – If set, returns the channel/ad revenue balance in nanotons.
- Returns:
TL Schema
payments.getStarsStatus#4ea9b3bf
flags:#
ton:flags.0?true
peer:InputPeer
= payments.StarsStatus
Parameter Tree
GetStarsStatus
├── ton →
true (optional)└── peer →
InputPeer├──
InputPeerEmpty├──
InputPeerSelf├──
InputPeerChat│ └── chat_id →
long├──
InputPeerUser│ ├── user_id →
long│ └── access_hash →
long├──
InputPeerChannel│ ├── channel_id →
long│ └── access_hash →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
GetStarsStatus(
ton=None,
peer=await app.resolve_peer(chat_id),
)
)