Layer 224
method Users

Parameters

Name Type Description
OrderByRevenue flags.0?true If set, orders results by the expected revenue
OrderByDate flags.1?true If set, orders results by the creation date of the affiliate program
Peer InputPeer The peer that will become the affiliate: star commissions will be transferred to this peer's star balance.
Offset string Offset for pagination, taken from payments. suggested Star Ref Bots. next_offset, initially empty.
Limit int Maximum number of results to return, see pagination

Gogram Example

// PaymentsGetSuggestedStarRefBots - using Params struct
result, err := client.PaymentsGetSuggestedStarRefBots(&tg.PaymentsGetSuggestedStarRefBotsParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    Offset: "Hello, World!",
    Limit: 42,

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

Possible Errors

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