from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton markup = InlineKeyboardMarkup() markup.row(InlineKeyboardButton('Option 1', callback_data='1'), InlineKeyboardButton('Option 2', callback_data='2'))
markup = InlineKeyboardMarkup() markup.row(InlineKeyboardButton('Category 1', callback_data='cat1'), InlineKeyboardButton('Category 2', callback_data='cat2')) markup.row(InlineKeyboardButton('Subcategory 1', callback_data='subcat1'), InlineKeyboardButton('Subcategory 2', callback_data='subcat2'))This creates an inline keyboard with two rows of buttons. The first row has two buttons for categories, and the second row has two buttons for subcategories. Overall, the telebot.types package library can be used to easily create Telegram bots using Python. The InlineKeyboardMarkup class is just one example of the many helpful classes and functions included in the package.