expense-bot/utils/notify_admins.py

15 lines
306 B
Python
Raw Normal View History

2022-04-01 21:02:03 +02:00
import logging
from aiogram import Dispatcher
from data.config import ADMINS
async def on_startup_notify(dp: Dispatcher):
for admin in ADMINS:
try:
2022-04-01 21:15:05 +02:00
await dp.bot.send_message(admin, "Voodoo21-expense started")
2022-04-01 21:02:03 +02:00
except Exception as err:
logging.exception(err)