diff --git a/client.py b/client.py index 77ddc23d..214b0e1f 100644 --- a/client.py +++ b/client.py @@ -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 diff --git a/handlers/admin/admin_user_editor.py b/handlers/admin/admin_user_editor.py index 45b8510c..07673ee9 100644 --- a/handlers/admin/admin_user_editor.py +++ b/handlers/admin/admin_user_editor.py @@ -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),