Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-22 21:37:43 +00:00
Update
This commit is contained in:
@@ -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