payments.getSuggestedStarRefBots
Obtain a list of suggested mini apps with available affiliate programs
Obtain a list of suggested [mini apps](https://core.telegram.org/api/bots/webapps.md) with available [affiliate programs](https://core.telegram.org/api/bots/referrals.md)
| Name | Type | Required | Description |
|---|---|---|---|
order_by_revenue | true | No | If set, orders results by the expected revenue |
order_by_date | true | No | If set, orders results by the creation date of the affiliate program |
peer | InputPeer | Yes | The peer that will become the affiliate: star commissions will be transferred to this peer's star balance. |
offset | string | Yes | Offset for pagination, taken from [payments.suggestedStarRefBots](https://core.telegram.org/constructor/payments.suggestedStarRefBots.md).`next_offset`, initially empty. |
limit | int | Yes | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |
Responses
payments.SuggestedStarRefBots
MTProto RPC
- 403 · PEER_ID_INVALID — The provided peer id is invalid.