Deleted mysql support, redis password, webhook, keyboard constructors, filters, loguru.

Added support of decorators in handlers
Added function to notify admins on startup
This commit is contained in:
Kostiantyn Kriuchkov
2020-04-14 01:50:57 +03:00
parent 13ff8d0478
commit eab45a5088
30 changed files with 141 additions and 223 deletions

14
utils/notify_admins.py Normal file
View File

@@ -0,0 +1,14 @@
import logging
from aiogram import Dispatcher
from data.config import admins
async def on_startup_notify(dp: Dispatcher):
for admin in admins:
try:
await dp.bot.send_message(admin, "Бот Запущен")
except Exception as err:
logging.exception(err)