From 456e37f07f315948cb5c2ea797f62cd1c7414998 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Tue, 6 Dec 2022 20:56:30 +1000 Subject: [PATCH] testx --- handlers/coding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/coding.py b/handlers/coding.py index 841d820..d621f7a 100644 --- a/handlers/coding.py +++ b/handlers/coding.py @@ -2,11 +2,11 @@ from aiogram import types, Dispatcher from create_bot import bot, dp from sqdb import user, session -@dp.message_handler(commands=['alarm']) +@dp.message_handler(commands=['alarming']) async def notify_chats(): for chats in session.query(user.chat_id).distinct(): session.close() - await bot.send_message({chats},'Ведутся пажилые работы,\n Ожидайте...') + await bot.send_message(chats,'Ведутся пажилые работы,\n Ожидайте...') await bot.send_message(226765676, 'рассылка завершена') def register_handlers_alarm(dp: Dispatcher):