Constructor: keyboardButtonRequestPeer
Prompts the user to select and share a peer with the bot using messages.sendBotRequestedPeer
Attributes:
Name | Type | Required | Description |
---|---|---|---|
text | string | Yes | Button text |
button_id | int | Yes | Button ID, to be passed to messages.sendBotRequestedPeer. |
peer_type | RequestPeerType | Yes | Filtering 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 a peer of the specified type, if needed. |
Type: KeyboardButton
Example:
$keyboardButtonRequestPeer = ['_' => 'keyboardButtonRequestPeer', 'text' => 'string', 'button_id' => int, 'peer_type' => RequestPeerType];