telegram api method · layer 229 · #0d6b48f7

payments.getSuggestedStarRefBots

usable by users

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

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

returns

payments.SuggestedStarRefBots

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403PEER_ID_INVALIDThe provided peer id is invalid.

history

present in layers 195–229

idlayers
#0d6b48f7195–229