from aiogram import types
from aiogram.utils.keyboard import InlineKeyboardBuilder
class InlineKeyboard:
def __init__(self):
self.keyboard_markup = InlineKeyboardBuilder()
def add_button(self, text, callback_data):
button = types.InlineKeyboardButton(text=text, callback_data=callback_data)
self.keyboard_markup.add(button)
def get_markup(self):
return self.keyboard_markup.as_markup()