15 lines
398 B
Python
15 lines
398 B
Python
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
|
from app.config import MASTERS
|
|
|
|
|
|
from app.keyboards.back import get_back_button
|
|
|
|
|
|
def get_masters_keyboard():
|
|
buttons = [
|
|
[InlineKeyboardButton(text=name, callback_data=key)]
|
|
for key, name in MASTERS.items()
|
|
]
|
|
buttons.append(get_back_button())
|
|
return InlineKeyboardMarkup(inline_keyboard=buttons)
|