payments.GetStarsRevenueStats

class pyrogram.raw.functions.payments.GetStarsRevenueStats

Get Telegram Star revenue statistics ».

Details:
  • Layer: 223

  • ID: D91FFAD6

Parameters:
  • peer (InputPeer) – Get statistics for the specified bot, channel or ourselves (inputPeerSelf).

  • dark (bool, optional) – Whether to enable dark theme for graph colors

  • ton (bool, optional) – If set, fetches channel/bot ad revenue statistics in TON.

Returns:

payments.StarsRevenueStats

TL Schema

payments.getStarsRevenueStats#d91ffad6
flags:#
dark:flags.0?true
ton:flags.1?true
peer:InputPeer

= payments.StarsRevenueStats

Parameter Tree

GetStarsRevenueStats
├── darktrue (optional)
├── 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(
    GetStarsRevenueStats(
        dark=None,
        ton=None,
        peer=await app.resolve_peer(chat_id),
    )
)