Link Search Menu Expand Document

Constructor: inputKeyboardButtonRequestPeer

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
name_requestedBoolOptionalSet this flag to request the peer’s name.
username_requestedBoolOptionalSet this flag to request the peer’s @username (if any).
photo_requestedBoolOptionalSet this flag to request the peer’s photo (if any).
textstringYesButton text
button_idintYesButton ID, to be passed to messages.sendBotRequestedPeer.
peer_typeRequestPeerTypeYesFiltering 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_quantityintYesMaximum number of peers that can be chosen.

Type: KeyboardButton

Example:

$inputKeyboardButtonRequestPeer = ['_' => 'inputKeyboardButtonRequestPeer', 'name_requested' => Bool, 'username_requested' => Bool, 'photo_requested' => Bool, 'text' => 'string', 'button_id' => int, 'peer_type' => RequestPeerType, 'max_quantity' => int];