Raw.KeyboardButtonRequestPeer

Raw.KeyboardButtonRequestPeer

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

keyboardButtonRequestPeer#53d7bfd8 text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton;
export namespace Raw {
  export class KeyboardButtonRequestPeer {
    constructor(params: {
      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: 0x53d7bfd8

Property

  • 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.