add: android tv connection for remnawave

This commit is contained in:
Capybara-z
2025-06-05 01:14:20 +03:00
parent 9f696fa9cd
commit e2d31525ea
5 changed files with 61 additions and 19 deletions
@@ -152,6 +152,9 @@ async def key_cluster_mode(
text=CONNECT_DEVICE, web_app=WebAppInfo(url=final_link)
)
)
builder.row(
InlineKeyboardButton(text=TV_BUTTON, callback_data=f"connect_tv|direct|{final_link}")
)
elif CONNECT_PHONE_BUTTON:
builder.row(
InlineKeyboardButton(
@@ -528,6 +528,9 @@ async def finalize_key_creation(
web_app=WebAppInfo(url=public_link or remnawave_link),
)
)
builder.row(
InlineKeyboardButton(text=TV_BUTTON, callback_data=f"connect_tv|direct|{public_link or remnawave_link}")
)
elif CONNECT_PHONE_BUTTON:
builder.row(
InlineKeyboardButton(text=CONNECT_PHONE, callback_data=f"connect_phone|{key_name}")
+3
View File
@@ -326,6 +326,9 @@ async def render_key_info(
text=CONNECT_DEVICE, web_app=WebAppInfo(url=final_link)
)
)
builder.row(
InlineKeyboardButton(text=TV_BUTTON, callback_data=f"connect_tv|direct|{final_link}")
)
else:
if CONNECT_PHONE_BUTTON:
builder.row(