Skip to content

export Class

InlineKeyboardMarkup ​

extends ​

Builder

This object represents an inline keyboard that appears right next to the message it belongs to.

Constructor ​

ts
 new InlineKeyboardMarkup( ...inline_buttons )
ParameterTypeDescription
...inline_buttonsInlineKeyboardButton[][]An array of arrays containing of buttons.

Methods ​

addrow( ...inline_buttons ) ​

ParameterTypeDescription
...inline_buttonsInlineKeyboardButton[]The keyboard buttons to display in this row.

Adds a new row to the current markup.

Returns: InlineKeyboardMarkup

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.