payments.getSuggestedStarRefBots

Obtain a list of suggested mini apps with available affiliate programs

order_by_revenue and order_by_date are mutually exclusive: if neither is set, results are sorted by profitability.

 Method schema is available as of layer 195. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
order_by_revenue flags.0?true If set, orders results by the expected revenue
order_by_date 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.suggestedStarRefBots.next_offset, initially empty.
limit int Maximum number of results to return, see pagination

Result

payments.SuggestedStarRefBots

Possible errors

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

Related pages

payments.suggestedStarRefBots

A list of suggested mini apps with available affiliate programs

Pagination in the API

How to fetch results from large lists of objects.

Mini Apps on Telegram

Bots can offer users interactive HTML5 web apps to completely replace any website.

Affiliate programs

Developers can open affiliate programs for their mini app – allowing content creators, other mini app developers and any Telegram user to promote it and earn commissions on purchases made by people they referred.