payments.editConnectedStarRefBot
Leave a bot's affiliate program »
Leave a bot's [affiliate program »](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)
| Name | Type | Required | Description |
|---|---|---|---|
revoked | true | No | If set, leaves the bot's affiliate program |
peer | InputPeer | Yes | The peer that was affiliated |
link | string | Yes | The affiliate link to revoke |
Replies
payments.ConnectedStarRefBots
MTProto RPC
- 400 · STARREF_HASH_REVOKED — The specified affiliate link was already revoked.