teleproto - v1.229.0
    Preparing search index...

    Class ReplyKeyboard

    Keyboard shown in place of the input field, built either from a grid or by chaining.

    const keyboard = new ReplyKeyboard([], { resize: true, placeholder: "Pick one" })
    .text("Hi")
    .requestPhone("Share phone");

    await client.sendMessage(chat, { message: "Menu", buttons: keyboard });

    Hierarchy

    Index
    • Reflows every button into rows of at most count buttons.

      Parameters

      • count: number

      Returns this

    • Asks the user to share their location.

      Parameters

      • text: string
      • options: ButtonOptions = {}

      Returns this

    • Asks the user to pick a chat, user or channel.

      Parameters

      • text: string
      • options: RequestPeerButtonOptions

      Returns this

    • Asks the user to share their phone number.

      Parameters

      • text: string
      • options: ButtonOptions = {}

      Returns this

    • Opens the poll composer.

      Parameters

      • text: string
      • options: RequestPollButtonOptions = {}

      Returns this

    • Starts a new row; empty rows are dropped when the keyboard is built.

      Returns this

    • Changes the keyboard's own options.

      Parameters

      • options: ReplyKeyboardOptions

      Returns this

    • Sends its own text as a message.

      Parameters

      • text: string
      • options: ButtonOptions = {}

      Returns this

    • Opens a web app.

      Parameters

      • text: string
      • url: string
      • options: ButtonOptions = {}

      Returns this