Layer 220
method Users
payments.connectStarRefBot#7ed5348a peer:InputPeer bot:InputUser = payments.ConnectedStarRefBots;

Parameters

Name Type Description
Peer InputPeer The peer that will become the affiliate: star commissions will be transferred to this peer's star balance.
Bot InputUser The bot that offers the affiliate program

Gogram Example

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