Builder for bot keyboards

Constructors

Properties

Methods

Constructors

  • Parameters

    • maxRowWidth: null | number = 3

    Returns BotKeyboardBuilder

Properties

maxRowWidth: null | number = 3

Methods

  • Append a button to the last row, wrapping if needed.

    Parameters

    • btn: ButtonLike | () => ButtonLike

      Button to add

    • force: boolean = false

      Whether to forcefully add the button (i.e. do not wrap)

    Returns this

  • Add buttons, wrapping them once maxRowWidth is reached

    Parameters

    Returns this

  • Add a row of buttons. Will not be wrapped.

    Parameters

    Returns this