Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-25 22:47:43 +00:00
Update
This commit is contained in:
+1
-1
@@ -4,4 +4,4 @@ colorlog==6.7.0
|
|||||||
typing==3.7.4.3
|
typing==3.7.4.3
|
||||||
aiohttp==3.8.4
|
aiohttp==3.8.4
|
||||||
colorama==0.4.5
|
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):
|
async def admin_database(message: Message, bot: Bot, state: FSM, rSession: RS, my_user):
|
||||||
await state.clear()
|
await state.clear()
|
||||||
|
|
||||||
await message.answer_document(FSInputFile(PATH_DATABASE),
|
await message.answer_document(
|
||||||
caption=f"<b>📦 BACKUP</b>\n"
|
FSInputFile(PATH_DATABASE),
|
||||||
f"🕰 <code>{get_date()}</code>")
|
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):
|
async def admin_log(message: Message, bot: Bot, state: FSM, rSession: RS, my_user):
|
||||||
await state.clear()
|
await state.clear()
|
||||||
|
|
||||||
await message.answer_document(FSInputFile(PATH_LOGS),
|
await message.answer_document(
|
||||||
caption=f"<b>🖨 LOGS</b>\n"
|
FSInputFile(PATH_LOGS),
|
||||||
f"🕰 <code>{get_date()}</code>")
|
caption=f"<b>🖨 LOGS</b>\n"
|
||||||
|
f"🕰 <code>{get_date()}</code>",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# Очистить логи
|
# Очистить логи
|
||||||
|
|||||||
Reference in New Issue
Block a user