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.

 Method schema is available as of layer 183. Switch »

Parameters

Name Type Description
peer InputPeer Channel or bot that owns the stars.

Result

payments.StarsRevenueAdsAccountUrl

Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

Telegram Stars

Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.