From 4dff284b7ff276be3ec4fba6efb8704457d74a43 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Tue, 6 Dec 2022 20:55:55 +1000 Subject: [PATCH] testx --- bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index feb4cba..75bd0fa 100644 --- a/bot.py +++ b/bot.py @@ -1,4 +1,4 @@ -from create_bot import dp +from create_bot import dp, bot import logging from aiogram import executor from handlers import pipisa, time_new_year, start_help, coding @@ -6,6 +6,9 @@ from handlers import pipisa, time_new_year, start_help, coding logging.basicConfig(level=logging.DEBUG) +@dp.message_handler(commands=['alarm']) +async def notify_chats(): + await bot.send_message(226765676, 'рассылка завершена') pipisa.register_handlers_pipisa(dp)