Skip to main content

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

NameTypeRequiredDescription
RevokedboolIf set, leaves the bot's affiliate program
PeerInputPeerClassyesThe peer that was affiliated
LinkstringyesThe affiliate link to revoke

Returns

*PaymentsConnectedStarRefBots

Possible errors

CodeTypeDescription
400STARREF_HASH_REVOKEDThe specified affiliate link was already revoked.

References