payments.editConnectedStarRefBot
Leave a bot's affiliate program »
func (c *Client) PaymentsEditConnectedStarRefBot(ctx context.Context, request *PaymentsEditConnectedStarRefBotRequest) (*PaymentsConnectedStarRefBots, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsEditConnectedStarRefBot(ctx, &tg.PaymentsEditConnectedStarRefBotRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PaymentsConnectedStarRefBots
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Revoked | bool | — | If set, leaves the bot's affiliate program |
Peer | InputPeerClass | yes | The peer that was affiliated |
Link | string | yes | The affiliate link to revoke |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STARREF_HASH_REVOKED | The specified affiliate link was already revoked. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.editConnectedStarRefBot#e4fca4a3