revert 71b87a97ff
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
revert change imports
This commit is contained in:
parent
71b87a97ff
commit
1215937856
1
othersq/__init__.py
Normal file
1
othersq/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from othersq import sendnot
|
@ -1,11 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
from aiogram import types, Dispatcher
|
from aiogram import types, Dispatcher
|
||||||
|
|
||||||
from sqdb import session, user
|
from sqdb import session, user
|
||||||
from create_bot import bot, dp
|
from create_bot import bot, dp
|
||||||
|
|
||||||
@dp.message_handler(commands=['sendall'])
|
@dp.message_handler(commands=['sendall'])
|
||||||
async def sendalarm(message: types.Message):
|
async def sendall(message: types.Message):
|
||||||
print('начал работать')
|
print('начал работать')
|
||||||
if message.chat.type == 'private':
|
if message.chat.type == 'private':
|
||||||
if message.from_user.id == 226765676:
|
if message.from_user.id == 226765676:
|
||||||
@ -23,6 +24,5 @@ async def sendalarm(message: types.Message):
|
|||||||
print('eror sendall')
|
print('eror sendall')
|
||||||
finally: session.close_all()
|
finally: session.close_all()
|
||||||
|
|
||||||
|
def register_handlers_sendnotal(dp: Dispatcher):
|
||||||
def register_handlers_sendalarm(dp: Dispatcher):
|
dp.register_message_handler(sendall)
|
||||||
dp.register_message_handler(sendalarm)
|
|
Loading…
Reference in New Issue
Block a user