payments.GetStarsRevenueStats
- class pyrogram.raw.functions.payments.GetStarsRevenueStats
Get Telegram Star revenue statistics ».
- Details:
Layer:
223ID:
D91FFAD6
- Parameters:
peer (
InputPeer) – Get statistics for the specified bot, channel or ourselves (inputPeerSelf).dark (
bool, optional) – Whether to enable dark theme for graph colorston (
bool, optional) – If set, fetches channel/bot ad revenue statistics in TON.
- Returns:
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├──
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(
GetStarsRevenueStats(
dark=None,
ton=None,
peer=await app.resolve_peer(chat_id),
)
)