Layer 224
method Users
payments.editConnectedStarRefBot#e4fca4a3 flags:# revoked:flags.0?true peer:InputPeer link:string = payments.ConnectedStarRefBots;

Parameters

Name Type Description
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

Gogram Example

// PaymentsEditConnectedStarRefBot - using Params struct
result, err := client.PaymentsEditConnectedStarRefBot(&tg.PaymentsEditConnectedStarRefBotParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    Link: "Hello, World!",

    // Optional fields:
    // Revoked: true,
})
if err != nil {
    // handle error
}
// result is *tg.PaymentsConnectedStarRefBots

Possible Errors

Code Type Description
400 STARREF_HASH_REVOKED The specified affiliate link was already revoked.