forked from Pavel_Durov/python_bot
add alarm of job fix
This commit is contained in:
parent
45d4aa8c9a
commit
78759e9a8a
@ -6,7 +6,7 @@ from sqdb import user, session
|
|||||||
async def notify_chats(message: types.Message):
|
async def notify_chats(message: types.Message):
|
||||||
for chats in session.query(user.chat_id).distinct():
|
for chats in session.query(user.chat_id).distinct():
|
||||||
session.close()
|
session.close()
|
||||||
await bot.send_message(chats,'<b>Ведутся пажилые работы,\n Ожидайте...</b>')
|
await bot.send_message(chats,'<b>Ведутся пажилые работы,\n Ожидайте...</b>')
|
||||||
|
|
||||||
def register_handlers_alarm(dp: Dispatcher):
|
def register_handlers_alarm(dp: Dispatcher):
|
||||||
dp.register_message_handler(notify_chats)
|
dp.register_message_handler(notify_chats)
|
Loading…
Reference in New Issue
Block a user