Raw.InputKeyboardButtonRequestPeer

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 undefined

    Set this flag to request the peer’s name.

  • usernameRequested : boolean or undefined

    Set this flag to request the peer’s @username (if any).

  • photoRequested : boolean or undefined

    Set this flag to request the peer’s photo (if any).

  • text : string

    Button text

  • buttonId : number

    Button id, to be passed to messages.sendbotrequestedpeer.

  • peerType : Raw.TypeRequestPeerType

    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 maxQuantity) peers of the specified type, if needed.

  • maxQuantity : number

    Maximum number of peers that can be chosen.