tg_bot/keyboards/GetTableListKeyboard.py

24 lines
623 B
Python
Raw Normal View History

2024-12-06 14:20:29 +03:00
from bot.Keyboard import Keyboard
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
class GetTableListKeyboard(Keyboard):
def get_keyboard(self):
keyboard = []
for i in range(1, 8):
keyboard.append(
[
InlineKeyboardButton("Стол {t}".format(t=i),
callback_data="set_table={t}".format(t=i))
]
)
keyboard.append(
[
InlineKeyboardButton("Назад", callback_data="set_table=back")
]
)
return keyboard