mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-07-25 01:34:30 +00:00
Update
This commit is contained in:
+1
-1
@@ -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
|
||||
@@ -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>",
|
||||
)
|
||||
|
||||
|
||||
# Очистить логи
|
||||
|
||||
Reference in New Issue
Block a user