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.

Layer 223

keyboardButtonRequestPeer#5b0f15f5 flags:# style:flags.10?KeyboardButtonStyle text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
styleflags.10?KeyboardButtonStyleButton style, see here » for more info on button styles.
textstringButton text
button_idintButton ID, to be passed to messages.sendBotRequestedPeer.
peer_typeRequestPeerTypeFiltering criteria to use for the peer selection list shown to the user.
The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.
max_quantityintMaximum number of peers that can be chosen.

Type #

KeyboardButton

Bot buttons #

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

messages.sendBotRequestedPeer #

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

replyKeyboardMarkup #

Represents a reply keyboard