Layer 227
method Users
payments.getSuggestedStarRefBots#d6b48f7 flags:# order_by_revenue:flags.0?true order_by_date:flags.1?true peer:InputPeer offset:string limit:int = payments.SuggestedStarRefBots;

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 - positional arguments
result, err := client.PaymentsGetSuggestedStarRefBots(nil, nil, &tg.InputPeerUser{UserID: int64(777000)}, "Hello, World!", 42)
if err != nil {
    // handle error
}
// result is *tg.PaymentsSuggestedStarRefBots

Possible Errors

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