This commit is contained in:
parent
92db050945
commit
71b87a97ff
@ -1,12 +1,11 @@
|
||||
|
||||
|
||||
from aiogram import types, Dispatcher
|
||||
|
||||
from sqdb import session, user
|
||||
from create_bot import bot, dp
|
||||
|
||||
@dp.message_handler(commands=['sendall'])
|
||||
async def sendall(message: types.Message):
|
||||
async def sendalarm(message: types.Message):
|
||||
print('начал работать')
|
||||
if message.chat.type == 'private':
|
||||
if message.from_user.id == 226765676:
|
||||
@ -24,5 +23,6 @@ async def sendall(message: types.Message):
|
||||
print('eror sendall')
|
||||
finally: session.close_all()
|
||||
|
||||
def register_handlers_sendnotal(dp: Dispatcher):
|
||||
dp.register_message_handler(sendall)
|
||||
|
||||
def register_handlers_sendalarm(dp: Dispatcher):
|
||||
dp.register_message_handler(sendalarm)
|
@ -1 +0,0 @@
|
||||
from othersq import sendnot
|
Loading…
Reference in New Issue
Block a user