ultra-telegram-framework
    Preparing search index...

    Class ReplyKeyboard

    Abstract class containing common logic for all keyboard types. T is the button type (InlineKeyboardButton or KeyboardButton).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    matrix: KeyboardButton[][] = ...

    Methods

    • Adds a custom emoji to the LAST added button.

      Parameters

      • emojiId: string

        Unique emoji ID (available for Premium bots)

      Returns this

    • Parameters

      • is_one_time: boolean = true

      Returns this

    • Parameters

      • is_persistent: boolean = true

      Returns this

    • Parameters

      • text: string

      Returns this

    • Parameters

      • is_resized: boolean = true

      Returns this

    • Parameters

      • is_selective: boolean = true

      Returns this

    • Sets the style for the LAST added button.

      Parameters

      • style: "danger" | "success" | "primary"

        'danger' (red) | 'success' (green) | 'primary' (blue)

      Returns this

    • Adds a regular text button

      Parameters

      • text: string

      Returns this

    • Parameters

      • text: string
      • webAppUrl: string

      Returns this