add alarm of job fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-12-06 20:27:55 +10:00
parent 45d4aa8c9a
commit 78759e9a8a

View File

@ -6,7 +6,7 @@ from sqdb import user, session
async def notify_chats(message: types.Message):
for chats in session.query(user.chat_id).distinct():
session.close()
await bot.send_message(chats,'<b>Ведутся пажилые работы,\n Ожидайте...</b>')
await bot.send_message(chats,'<b>Ведутся пажилые работы,\n Ожидайте...</b>')
def register_handlers_alarm(dp: Dispatcher):
dp.register_message_handler(notify_chats)