telegram api method · layer 229 · #6c5cf2a7

messages.sendBotRequestedPeer

usable by users

Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.

definition

messages.sendBotRequestedPeer#6c5cf2a7 flags:# peer:InputPeer msg_id:flags.0?int webapp_req_id:flags.1?string button_id:int requested_peers:Vector<InputPeer> = Updates;

parameters

nametypedescription
flags#
peerInputPeerThe bot that sent the keyboardButtonRequestPeer button.
msg_idflags.0?intID of the message that contained the reply keyboard with the keyboardButtonRequestPeer button.
webapp_req_idflags.1?string
button_idintThe button_id field from the keyboardButtonRequestPeer constructor.
requested_peersVector<InputPeer>The chosen peers.

returns

Updates

errors (4)

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

history

present in layers 152–229 · constructor id changed 2×

idlayers
#fe38d01b152–168
#91b2d060169–223
#6c5cf2a7224–229