small fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user