messages.sendBotRequestedPeer

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

 Cara skema tersedia sebagai lapisan 169. Tukar »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
peer InputPeer The bot that sent the keyboardButtonRequestPeer button.
msg_id flags.0?int ID of the message that contained the reply keyboard with the keyboardButtonRequestPeer button.
webapp_req_id flags.1?string If the button was prepared for a Mini App », the Mini App request ID returned by bots.requestWebViewButton.
button_id int The button_id field from the keyboardButtonRequestPeer constructor.
requested_peers Vector<InputPeer> The chosen peers.

Result

Updates

Only users can use this method

Possible errors

Code Type Description
400 MESSAGE_ID_INVALID The provided message id is invalid.
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

Available only in private chats, in reply keyboards.

See peer requests for the full flow.

Bot buttons

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.

bots.requestWebViewButton

Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.