Layer 220
PaymentsGetSuggestedStarRefBots
Obtain a list of suggested mini apps with available affiliate programs
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| 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 |
Returns
payments.SuggestedStarRefBotsPossible Errors
| Code | Type | Description |
|---|---|---|
| 403 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// PaymentsGetSuggestedStarRefBots - using Params struct result, err := client.PaymentsGetSuggestedStarRefBots(&tg.PaymentsGetSuggestedStarRefBotsParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, Offset: "...", Limit: 0, // Optional fields: // OrderByRevenue: true, // OrderByDate: true, }) if err != nil { // handle error } // result is *tg.PaymentsSuggestedStarRefBots