Layer 220
PaymentsGetStarsRevenueAdsAccountUrl
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
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Channel or bot that owns the stars. |
Possible Errors
| Code | Type | Description |
|---|---|---|
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// PaymentsGetStarsRevenueAdsAccountUrl - positional arguments result, err := client.PaymentsGetStarsRevenueAdsAccountUrl(&tg.InputPeerUser{UserID: int64(123456789)}) if err != nil { // handle error } // result is *tg.PaymentsStarsRevenueAdsAccountUrl