revert 71b87a97ff
All checks were successful
continuous-integration/drone/push Build is passing

revert change imports
This commit is contained in:
Pavel_Durov 2022-12-11 01:21:07 -05:00
parent 71b87a97ff
commit 1215937856
2 changed files with 5 additions and 4 deletions

1
othersq/__init__.py Normal file
View File

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

View File

@ -1,11 +1,12 @@
from aiogram import types, Dispatcher
from sqdb import session, user
from create_bot import bot, dp
@dp.message_handler(commands=['sendall'])
async def sendalarm(message: types.Message):
async def sendall(message: types.Message):
print('начал работать')
if message.chat.type == 'private':
if message.from_user.id == 226765676:
@ -23,6 +24,5 @@ async def sendalarm(message: types.Message):
print('eror sendall')
finally: session.close_all()
def register_handlers_sendalarm(dp: Dispatcher):
dp.register_message_handler(sendalarm)
def register_handlers_sendnotal(dp: Dispatcher):
dp.register_message_handler(sendall)