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.

Layer 223

payments.suggestedStarRefBots#b4d5d859 flags:# count:int suggested_bots:Vector<StarRefProgram> users:Vector<User> next_offset:flags.0?string = payments.SuggestedStarRefBots;
---functions---
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 #

NameTypeDescription
flags#Flags, see TL conditional fields
order_by_revenueflags.0?trueIf set, orders results by the expected revenue
order_by_dateflags.1?trueIf set, orders results by the creation date of the affiliate program
peerInputPeerThe peer that will become the affiliate: star commissions will be transferred to this peer's star balance.
offsetstringOffset for pagination, taken from payments.suggestedStarRefBots.next_offset, initially empty.
limitintMaximum number of results to return, see pagination

Result #

payments.SuggestedStarRefBots

Only users can use this method #

Possible errors #

CodeTypeDescription
403PEER_ID_INVALIDThe provided peer id is invalid.

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.