small fix

This commit is contained in:
Vladless
2024-11-13 15:38:20 +03:00
parent 9f8a366aa3
commit 7bf22c8c2b
2 changed files with 16 additions and 4 deletions
+2
View File
@@ -69,6 +69,8 @@ async def extend_client_key(xui, email: str, new_expiry_time: int, client_id: st
client.id = client_id
client.expiry_time = new_expiry_time
client.flow = "xtls-rprx-vision"
client.sub_id = email
if TOTAL_GB > 0:
client.total_gb = TOTAL_GB
+14 -4
View File
@@ -298,14 +298,24 @@ async def handle_key_name_input(message: types.Message, state: FSMContext):
)
key_buttons.row(
text="⏳ Изменить время истечения",
callback_data=f"change_expiry|{email}",
InlineKeyboardButton(
text="⏳ Изменить время истечения",
callback_data=f"change_expiry|{email}"
)
)
key_buttons.row(
text="❌ Удалить ключ", callback_data=f"delete_key_admin|{email}"
InlineKeyboardButton(
text="❌ Удалить ключ",
callback_data=f"delete_key_admin|{email}"
)
)
key_buttons.row(text="🔙 Назад", callback_data="back_to_user_editor")
key_buttons.row(
InlineKeyboardButton(
text="🔙 Назад",
callback_data="back_to_user_editor"
)
)
await message.reply(
"\n".join(response_messages),