telegram api method · layer 229 · #0d6b48f7
payments.getSuggestedStarRefBots
Obtain a list of suggested mini apps with available affiliate programs
definition
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 |
|---|---|---|
flags | # | Flags, see TL conditional fields |
order_by_revenue | true | If set, orders results by the expected revenue |
order_by_date | 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.suggestedStarRefBots.next_offset, initially empty. |
limit | int | Maximum number of results to return, see pagination |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 403 | PEER_ID_INVALID | The provided peer id is invalid. |
history
present in layers 195–229
| id | layers |
|---|---|
| #0d6b48f7 | 195–229 |