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