telegram api constructor · layer 228 · #5b0f15f5
keyboardButtonRequestPeer
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer
not in the latest layer 229: last defined in layer 228
definition
keyboardButtonRequestPeer#5b0f15f5 flags:# style:flags.10?KeyboardButtonStyle text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton;
parameters
| name | type | description |
|---|---|---|
flags | # | |
style | KeyboardButtonStyle | |
text | string | Button text |
button_id | int | Button ID, to be passed to messages.sendBotRequestedPeer. |
peer_type | RequestPeerType | 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 one or more (up to max_quantity) peers of the specified type, if needed. |
max_quantity | int | Maximum number of peers that can be chosen. |
type
KeyboardButton · 17 other constructors
history
present in layers 152–228 · constructor id changed 2×
| id | layers |
|---|---|
| #0d0b468c | 152–168 |
| #53d7bfd8 | 169–221 |
| #5b0f15f5 | 222–228 |