This commit is contained in:
5
bot.py
5
bot.py
@@ -1,4 +1,4 @@
|
|||||||
from create_bot import dp
|
from create_bot import dp, bot
|
||||||
import logging
|
import logging
|
||||||
from aiogram import executor
|
from aiogram import executor
|
||||||
from handlers import pipisa, time_new_year, start_help, coding
|
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)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
|
@dp.message_handler(commands=['alarm'])
|
||||||
|
async def notify_chats():
|
||||||
|
await bot.send_message(226765676, 'рассылка завершена')
|
||||||
|
|
||||||
|
|
||||||
pipisa.register_handlers_pipisa(dp)
|
pipisa.register_handlers_pipisa(dp)
|
||||||
|
|||||||
Reference in New Issue
Block a user