Raw.InputKeyboardButtonRequestPeer
Prompts the user to select and share one or more peers with the bot using messages.sendbotrequestedpeer.
inputKeyboardButtonRequestPeer#c9662d05 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton;
export namespace Raw {
export class InputKeyboardButtonRequestPeer {
constructor(params: {
nameRequested?: boolean;
usernameRequested?: boolean;
photoRequested?: boolean;
text: string;
buttonId: number;
peerType: Raw.TypeRequestPeerType;
maxQuantity: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xc9662d05
Property
nameRequested
: boolean or undefinedSet this flag to request the peer’s name.
usernameRequested
: boolean or undefinedSet this flag to request the peer’s @username (if any).
photoRequested
: boolean or undefinedSet this flag to request the peer’s photo (if any).
text
: stringButton text
buttonId
: numberButton id, to be passed to messages.sendbotrequestedpeer.
peerType
: Raw.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 maxQuantity) peers of the specified type, if needed.
maxQuantity
: numberMaximum number of peers that can be chosen.