Layer 227
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 - positional arguments
result, err := client.PaymentsEditConnectedStarRefBot(nil, &tg.InputPeerUser{UserID: int64(777000)}, "Hello, World!")
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.