This commit is contained in:
Pavel_Duron 2022-12-06 20:55:55 +10:00
parent 4b3c1f6f79
commit 4dff284b7f

5
bot.py
View File

@ -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)