ShopBot/keyboard/default/operator/main_menu.py

14 lines
403 B
Python
Raw Normal View History

2022-06-05 15:07:48 +03:00
from aiogram.types.reply_keyboard import ReplyKeyboardMarkup, KeyboardButton
from load import messages
def main_menu(active: bool = False) -> ReplyKeyboardMarkup:
markup = ReplyKeyboardMarkup(resize_keyboard=True)
if active:
markup.add(KeyboardButton(messages.leave_work))
else:
markup.add(KeyboardButton(messages.on_work))
2022-06-16 00:32:17 +03:00
markup.add(messages.back)
2022-06-05 15:07:48 +03:00
return markup