change imports

This commit is contained in:
Pavel_Duron 2022-12-11 16:16:33 +10:00
parent 92db050945
commit 71b87a97ff
2 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -1 +0,0 @@
from othersq import sendnot