This commit is contained in:
djimbo
2022-09-24 20:38:34 +03:00
parent 359b9717ec
commit 9213a80cb9
16 changed files with 77 additions and 49 deletions
+2 -2
View File
@@ -2,13 +2,13 @@
from aiogram import Bot
from aiogram.types import FSInputFile
from tgbot.data.config import get_admins, PATH_DATABASE
from tgbot.data.config import get_admins, PATH_DATABASE, start_status
from tgbot.utils.const_functions import get_date, send_admins
# Выполнение функции после запуска бота (рассылка админам о запуске бота)
async def startup_notify(bot: Bot):
if len(get_admins()) >= 1:
if len(get_admins()) >= 1 and start_status:
await send_admins(bot, "<b>✅ Бот был запущен</b>")