async def checkBirthday(message: types.Message): if checkChatId(message.chat.id) == True: await sendListByBotCommand() await message.reply("В ближайшие 10 дней больше нет именинников.") else: pass
async def delEmployee(message: types.Message): if checkChatId(message.chat.id) == True: response = await DBModel.deleteEmployee(message.get_args()) await message.reply(response) else: pass
async def getAllEmployees(message: types.Message): if checkChatId(message.chat.id) == True: employeeInfo = await DBModel.getAllEmployees(forPrint=True) await message.reply(employeeInfo) else: pass
async def searchEmployee(message: types.Message): if checkChatId(message.chat.id) == True: employeeInfo = await DBModel.findEmployee(message.get_args()) await message.reply(employeeInfo) else: pass
async def process_help_samples(message: types.Message): if checkChatId(message.chat.id) == True: await message.reply(HELP_SAMPLES_MESSAGE_RU) else: await message.reply("Access denied.")