New features

This commit is contained in:
2022-06-05 15:07:48 +03:00
parent 7abdf589aa
commit 63afce795e
11 changed files with 123 additions and 1 deletions

View File

View File

@@ -0,0 +1,12 @@
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))
return markup