Example #1
0
async def checkBirthday(message: types.Message):
    if checkChatId(message.chat.id) == True:
        await sendListByBotCommand()
        await message.reply("В ближайшие 10 дней больше нет именинников.")
    else:
        pass
Example #2
0
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
Example #3
0
async def getAllEmployees(message: types.Message):
    if checkChatId(message.chat.id) == True:
        employeeInfo = await DBModel.getAllEmployees(forPrint=True)
        await message.reply(employeeInfo)
    else:
        pass
Example #4
0
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
Example #5
0
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.")