from bot.Keyboard import Keyboard from telegram import InlineKeyboardButton, InlineKeyboardMarkup class AdminAnswerToBooking(Keyboard): def get_keyboard(self): book_id = self.get_option("book_id") return [ [ InlineKeyboardButton("Принять", callback_data="accept={book_id}".format(book_id=book_id)), # InlineKeyboardButton("Ответить", callback_data="answer={book_id}".format(book_id=book_id)) ], ]