This commit is contained in:
dj
2023-03-31 00:16:32 +03:00
parent f33c812bbe
commit 35bf80d783
2 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ colorlog==6.7.0
typing==3.7.4.3
aiohttp==3.8.4
colorama==0.4.5
cachetools==5.3.0
cachetools==5.3.0
+10 -6
View File
@@ -47,9 +47,11 @@ async def admin_callback_inline(call: CallbackQuery, bot: Bot, state: FSM, rSess
async def admin_database(message: Message, bot: Bot, state: FSM, rSession: RS, my_user):
await state.clear()
await message.answer_document(FSInputFile(PATH_DATABASE),
caption=f"<b>📦 BACKUP</b>\n"
f"🕰 <code>{get_date()}</code>")
await message.answer_document(
FSInputFile(PATH_DATABASE),
caption=f"<b>📦 BACKUP</b>\n"
f"🕰 <code>{get_date()}</code>",
)
# Получение логов
@@ -57,9 +59,11 @@ async def admin_database(message: Message, bot: Bot, state: FSM, rSession: RS, m
async def admin_log(message: Message, bot: Bot, state: FSM, rSession: RS, my_user):
await state.clear()
await message.answer_document(FSInputFile(PATH_LOGS),
caption=f"<b>🖨 LOGS</b>\n"
f"🕰 <code>{get_date()}</code>")
await message.answer_document(
FSInputFile(PATH_LOGS),
caption=f"<b>🖨 LOGS</b>\n"
f"🕰 <code>{get_date()}</code>",
)
# Очистить логи