messages.sendBotRequestedPeer

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

 Method schema is available as of layer 169. Switch ยป

Parameters

Name Type Description
peer InputPeer The bot that sent the keyboardButtonRequestPeer button.
msg_id int ID of the message that contained the reply keyboard with the keyboardButtonRequestPeer button.
button_id int The button_id field from the keyboardButtonRequestPeer constructor.
requested_peers Vector<InputPeer> The chosen peers.

Result

Updates

Possible errors

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

Related pages

keyboardButtonRequestPeer

Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer