forked from Pavel_Durov/python_bot
testx
This commit is contained in:
parent
4b3c1f6f79
commit
4dff284b7f
5
bot.py
5
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)
|
||||
|
Loading…
Reference in New Issue
Block a user