From bbe355008ab0b0200d3206e69c7dfae564c6a694 Mon Sep 17 00:00:00 2001 From: Vladless Date: Sun, 24 Nov 2024 23:02:34 +0300 Subject: [PATCH 1/2] reset traffic --- client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/client.py b/client.py index a5566e47..660214e0 100644 --- a/client.py +++ b/client.py @@ -72,6 +72,7 @@ async def extend_client_key(xui, inbound_id, email: str, new_expiry_time: int, c client.inbound_id = inbound_id await xui.client.update(client.id, client) + await xui.client.reset_stats(inbound_id, email) logger.info(f"Ключ клиента {client.email} успешно продлён до {new_expiry_time}.") except Exception as e: From d34f49c9b28d61425f5787ea6f7814edbce3aabe Mon Sep 17 00:00:00 2001 From: Vladless Date: Sun, 24 Nov 2024 23:10:22 +0300 Subject: [PATCH 2/2] 3.2 --- handlers/start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/start.py b/handlers/start.py index a4b1a6f9..2c6a7799 100644 --- a/handlers/start.py +++ b/handlers/start.py @@ -111,4 +111,4 @@ async def handle_about_vpn(callback_query: CallbackQuery): ) builder.row(InlineKeyboardButton(text="⬅️ Назад", callback_data="start")) - await callback_query.message.answer(get_about_vpn("3.1.1_Stable"), reply_markup=builder.as_markup()) + await callback_query.message.answer(get_about_vpn("3.2_Stable"), reply_markup=builder.as_markup())