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

View File

@@ -0,0 +1,7 @@
from aiogram.types.inline_keyboard import InlineKeyboardMarkup, InlineKeyboardButton
def answer_btn(user_id: int, supp_id: int):
markup = InlineKeyboardMarkup()
markup.add(InlineKeyboardButton("Ответить", callback_data=f'support|{user_id}|{supp_id}'))
return markup