keyboardButtonRequestPeer
Prompts the user to select and share one or more peers with the bot using messages sendBotRequestedPeer
type tg.KeyboardButtonRequestPeer struct { /* ... */ }
Implements KeyboardButton.
Fieldsโ
| Name | Type | Required | Description |
|---|---|---|---|
Style | KeyboardButtonStyle | โ | Button style, see here ยป for more info on button styles. |
Text | string | yes | Button text |
ButtonID | int | yes | Button ID, to be passed to messages.sendBotRequestedPeer. |
PeerType | RequestPeerTypeClass | 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 one or more (up to max_quantity) peers of the specified type, if needed. |
MaxQuantity | int | yes | Maximum number of peers that can be chosen. |
Referencesโ
- Official documentation
- Generated Go reference
- TL definition:
keyboardButtonRequestPeer#5b0f15f5