forked from Pavel_Durov/python_bot
testx
This commit is contained in:
parent
4dff284b7f
commit
456e37f07f
@ -2,11 +2,11 @@ from aiogram import types, Dispatcher
|
||||
from create_bot import bot, dp
|
||||
from sqdb import user, session
|
||||
|
||||
@dp.message_handler(commands=['alarm'])
|
||||
@dp.message_handler(commands=['alarming'])
|
||||
async def notify_chats():
|
||||
for chats in session.query(user.chat_id).distinct():
|
||||
session.close()
|
||||
await bot.send_message({chats},'<b>Ведутся пажилые работы,\n Ожидайте...</b>')
|
||||
await bot.send_message(chats,'<b>Ведутся пажилые работы,\n Ожидайте...</b>')
|
||||
await bot.send_message(226765676, 'рассылка завершена')
|
||||
|
||||
def register_handlers_alarm(dp: Dispatcher):
|
||||
|
Loading…
Reference in New Issue
Block a user