ultra-telegram-framework
    Preparing search index...

    Class BaseKeyboard<T>Abstract

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

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    matrix: T[][] = ...

    Methods

    • Adds a custom emoji to the LAST added button.

      Parameters

      • emojiId: string

        Unique emoji ID (available for Premium bots)

      Returns this

    • Sets the style for the LAST added button.

      Parameters

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

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

      Returns this