diff --git a/bot.py b/bot.py index 75bd0fa..db1772f 100644 --- a/bot.py +++ b/bot.py @@ -8,7 +8,7 @@ logging.basicConfig(level=logging.DEBUG) @dp.message_handler(commands=['alarm']) async def notify_chats(): - await bot.send_message(226765676, 'рассылка завершена') + await bot.send_message(226765676, text= 'рассылка завершена') pipisa.register_handlers_pipisa(dp) diff --git a/handlers/coding.py b/handlers/coding.py index d621f7a..d256efa 100644 --- a/handlers/coding.py +++ b/handlers/coding.py @@ -7,7 +7,7 @@ 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(226765676, 'рассылка завершена') + await bot.send_message(226765676, text= 'рассылка завершена') def register_handlers_alarm(dp: Dispatcher): dp.register_message_handler(notify_chats) \ No newline at end of file