telegram api method · layer 229 · #5869a553

payments.getConnectedStarRefBots

usable by users

Fetch all affiliations we have created for a certain peer

definition

payments.getConnectedStarRefBots#5869a553 flags:# peer:InputPeer offset_date:flags.2?int offset_link:flags.2?string limit:int = payments.ConnectedStarRefBots;

parameters

nametypedescription
flags#Flags, see TL conditional fields
peerInputPeerThe affiliated peer
offset_dateflags.2?intIf set, returns only results older than the specified unixtime
offset_linkflags.2?stringOffset for pagination, taken from the last returned connectedBotStarRef.url (initially empty)
limitintMaximum number of results to return, see pagination

returns

payments.ConnectedStarRefBots

errors (2)

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).

history

present in layers 195–229

idlayers
#5869a553195–229