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: 223

  • ID: 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:

payments.StarsStatus

TL Schema

payments.getStarsStatus#4ea9b3bf
flags:#
ton:flags.0?true
peer:InputPeer

= payments.StarsStatus

Parameter Tree

GetStarsStatus
├── tontrue (optional)
└── peerInputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    GetStarsStatus(
        ton=None,
        peer=await app.resolve_peer(chat_id),
    )
)