Layer 220
method Users
payments.getConnectedStarRefBot#b7d998f0 peer:InputPeer bot:InputUser = payments.ConnectedStarRefBots;

Parameters

Name Type Description
Peer InputPeer The affiliated peer
Bot InputUser The bot that offers the affiliate program

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// PaymentsGetConnectedStarRefBot - positional arguments
result, err := client.PaymentsGetConnectedStarRefBot(&tg.InputPeerUser{UserID: int64(123456789)}, &tg.InputUserSelf{})
if err != nil {
    // handle error
}
// result is *tg.PaymentsConnectedStarRefBots