payments.GetStarsRevenueStats

class pyrogram.raw.functions.payments.GetStarsRevenueStats

Get Telegram Star revenue statistics ».

Details:
  • Layer: 227

  • 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
├── dark → true (optional)
├── ton → true (optional)
└── peer → InputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── 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
├── msg_id → int
└── channel_id → long

Example

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