Skip to main content

inputKeyboardButtonRequestPeer

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

type tg.InputKeyboardButtonRequestPeer struct { /* ... */ }

Implements KeyboardButton.

Fields

NameTypeRequiredDescription
NameRequestedboolSet this flag to request the peer's name.
UsernameRequestedboolSet this flag to request the peer's @username (if any).
PhotoRequestedboolSet this flag to request the peer's photo (if any).
StyleKeyboardButtonStyleButton style, see here » for more info on button styles.
TextstringyesButton text
ButtonIDintyesButton ID, to be passed to messages.sendBotRequestedPeer.
PeerTypeRequestPeerTypeClassyesFiltering 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.
MaxQuantityintyesMaximum number of peers that can be chosen.

References