payments.GetStarsRevenueAdsAccountUrl
- class pyrogram.raw.functions.payments.GetStarsRevenueAdsAccountUrl
Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in peer, paid using the Telegram Stars owned by the specified peer, see here » for more info.
- Details:
Layer:
223ID:
D1D7EFC5
- Parameters:
peer (
InputPeer) – Channel or bot that owns the stars.- Returns:
TL Schema
payments.getStarsRevenueAdsAccountUrl#d1d7efc5
peer:InputPeer
= payments.StarsRevenueAdsAccountUrl
Parameter Tree
GetStarsRevenueAdsAccountUrl
└── 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(
GetStarsRevenueAdsAccountUrl(
peer=await app.resolve_peer(chat_id),
)
)