telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Class InlineKeyboardMarkup

    Represents an inline keyboard that appears right next to the message it belongs to.

    A class-based alternative to the InlineKeyboard fluent builder, for developers who prefer class-based InlineKeyboardMarkup(rows) construction. Both styles produce the same shape and can be freely mixed.

    const markup = new InlineKeyboardMarkup([
    [
    new InlineKeyboardButton("Yes", { callback_data: "yes" }),
    new InlineKeyboardButton("No", { callback_data: "no" }),
    ],
    ]);
    await bot.sendMessage({ chat_id: 12345, text: "Confirm?", reply_markup: markup });

    Implements

    Index
    inline_keyboard: InlineKeyboardButton[][]

    Array of button rows, each an array of InlineKeyboardButton.