telegram api constructor · layer 228 · #02b78156

inputKeyboardButtonRequestPeer

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

inputKeyboardButtonRequestPeer#2b78156 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true style:flags.10?KeyboardButtonStyle text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton;

parameters

nametypedescription
flags#Flags, see TL conditional fields
name_requestedflags.0?trueSet this flag to request the peer's name.
username_requestedflags.1?trueSet this flag to request the peer's @username (if any).
photo_requestedflags.2?trueSet this flag to request the peer's photo (if any).
styleflags.10?KeyboardButtonStyle
textstringButton text
button_idintButton ID, to be passed to messages.sendBotRequestedPeer.
peer_typeRequestPeerTypeFiltering 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_quantityintMaximum number of peers that can be chosen.

type

KeyboardButton · 17 other constructors

history

present in layers 177–228 · constructor id changed 1×

idlayers
#c9662d05177–221
#02b78156222–228