This commit is contained in:
dj
2024-04-05 19:12:20 +03:00
parent a3f41caa80
commit e50be4e3d1
10 changed files with 38 additions and 36 deletions
+3 -3
View File
@@ -2,13 +2,13 @@
from aiogram import Bot
from aiogram.types import FSInputFile
from tgbot.data.config import get_admins, PATH_DATABASE, start_status
from tgbot.data.config import get_admins, PATH_DATABASE, BOT_STATUS_NOTIFICATION
from tgbot.utils.const_functions import get_date, send_admins
# Выполнение функции после запуска бота (рассылка админам о запуске бота)
async def startup_notify(bot: Bot):
if len(get_admins()) >= 1 and start_status:
if len(get_admins()) >= 1 and BOT_STATUS_NOTIFICATION:
await send_admins(bot, "<b>✅ Bot was started</b>")
@@ -22,4 +22,4 @@ async def autobackup_admin(bot: Bot):
caption=f"<b>📦 #AUTOBACKUP | <code>{get_date()}</code></b>",
)
except:
pass
...