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: 223

  • ID: D1D7EFC5

Parameters:

peer (InputPeer) – Channel or bot that owns the stars.

Returns:

payments.StarsRevenueAdsAccountUrl

TL Schema

payments.getStarsRevenueAdsAccountUrl#d1d7efc5
peer:InputPeer

= payments.StarsRevenueAdsAccountUrl

Parameter Tree

GetStarsRevenueAdsAccountUrl
└── 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(
    GetStarsRevenueAdsAccountUrl(
        peer=await app.resolve_peer(chat_id),
    )
)