from telebot.types import InlineKeyboardMarkup keyboard = InlineKeyboardMarkup()
from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton keyboard = InlineKeyboardMarkup() button = InlineKeyboardButton(text='Press me', callback_data='button_pressed') keyboard.add(button)
keyboard = InlineKeyboardMarkup() button1 = InlineKeyboardButton(text='Option 1', callback_data='option1') button2 = InlineKeyboardButton(text='Option 2', callback_data='option2') button3 = InlineKeyboardButton(text='Option 3', callback_data='option3') keyboard.add_row(button1, button2) keyboard.add_row(button3)Note that the `add_row()` method takes a variable number of arguments, so you can pass any number of buttons to it. Overall, the `telebot.types` package provides a very convenient and flexible way to create custom keyboard layouts for Telegram bots.