Layer 220
PaymentsEditConnectedStarRefBot
Leave a bot's affiliate program
method
Users
payments.editConnectedStarRefBot#e4fca4a3 flags:# revoked:flags.0?true peer:InputPeer link:string = payments.ConnectedStarRefBots;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Revoked | flags.0?true | If set, leaves the bot's affiliate program |
| Peer | InputPeer | The peer that was affiliated |
| Link | string | The affiliate link to revoke |
Returns
payments.ConnectedStarRefBotsPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STARREF_HASH_REVOKED | The specified affiliate link was already revoked. |
Gogram Example
// PaymentsEditConnectedStarRefBot - using Params struct result, err := client.PaymentsEditConnectedStarRefBot(&tg.PaymentsEditConnectedStarRefBotParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, Link: "...", // Optional fields: // Revoked: true, }) if err != nil { // handle error } // result is *tg.PaymentsConnectedStarRefBots