This commit is contained in:
djimbo
2022-11-18 14:29:52 +03:00
parent 9ba4ee7215
commit 7d4aaf99d0
14 changed files with 185 additions and 109 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ async def startup_notify(bot: Bot):
# Автоматические бэкапы БД
async def autobackup(bot: Bot):
async def autobackup_admin(bot: Bot):
for admin in get_admins():
try:
await bot.send_document(admin,
FSInputFile(PATH_DATABASE),
caption=f"<b>📦 AUTOBACKUP</b>\n"
f"<code>🕰 {get_date()}</code>")
f"🕰 <code>{get_date()}</code>")
except:
pass