mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-18 02:55:00 +03:00
feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760)
The bot answered every action with a new message, so a chat filled with stale menus whose buttons still acted, and long client or inbound lists were paged through dozens of buttons. Each chat now has one live screen that is edited in place: the menu is grouped into Server, Clients, Traffic and Maintenance, lists open through inline search, the add-client flow starts from a draft card, QR codes arrive as one labelled sheet, and repeated notices collapse into one with a counter. A client's /start and /usage show only that client's own links and usage, groups are refused, and the settings page warns when the bot's inline mode is off. Admin topics, the indexed Telegram lookup and every locale, Slovak included, carry over.
This commit is contained in:
@@ -85,7 +85,6 @@
|
||||
"uploaded": "已上傳",
|
||||
"expiry": "到期",
|
||||
"totalQuota": "總配額",
|
||||
"individualLinks": "個別連結",
|
||||
"active": "啟用",
|
||||
"inactive": "停用",
|
||||
"unlimited": "無限制",
|
||||
@@ -1830,6 +1829,11 @@
|
||||
"subIncyResolveDnsIp": "DoH 伺服器 IP",
|
||||
"subIncyResolveDnsIpDesc": "用於引導的 DoH 伺服器 IP。",
|
||||
"subIncyGroupRouting": "路由",
|
||||
"tgInlineMissing": "Inline mode is disabled",
|
||||
"tgInlineMissingDesc": "Lists in the bot open through inline search. Enable it in @BotFather with /setinline, otherwise tapping a search button does nothing.",
|
||||
"tgInlineRecheck": "Check again",
|
||||
"tgPrivacyOn": "群組隱私已開啟",
|
||||
"tgPrivacyOnDesc": "此機器人只在私聊中回覆,因此會刻意忽略群組。群組隱私僅決定機器人能否讀取群組訊息,而它並不使用該權限。",
|
||||
"subHostSortMode": "訂閱節點排序",
|
||||
"subHostSortInbound": "入站順序(預設)",
|
||||
"subHostSortHosts": "主機順序",
|
||||
@@ -2486,7 +2490,6 @@
|
||||
}
|
||||
},
|
||||
"tgbot": {
|
||||
"keyboardClosed": "❌ 自定義鍵盤已關閉!",
|
||||
"noResult": "❗ 沒有結果!",
|
||||
"noQuery": "❌ 未找到查詢!請再次使用該命令!",
|
||||
"wentWrong": "❌ 出了點問題!",
|
||||
@@ -2508,10 +2511,6 @@
|
||||
"unknown": "❗ 未知命令",
|
||||
"pleaseChoose": "👇 請選擇:\r\n",
|
||||
"help": "🤖 歡迎使用本機器人!它旨在為您提供來自伺服器的特定資料,並允許您進行必要的修改。\r\n\r\n",
|
||||
"start": "👋 你好,<i>{{ .Firstname }}</i>。\r\n",
|
||||
"welcome": "🤖 歡迎來到 <b>{{ .Hostname }}</b> 管理機器人。\r\n",
|
||||
"status": "✅ 機器人正常執行!",
|
||||
"usage": "❗ 請輸入要搜尋的文字!",
|
||||
"getID": "🆔 您的 ID 為:<code>{{ .ID }}</code>",
|
||||
"helpAdminCommands": "要重新啟動 Xray Core:\r\n<code>/restart</code>\r\n\r\n要搜尋客戶電子郵件:\r\n<code>/usage [電子郵件]</code>\r\n\r\n要搜尋入站(帶有客戶統計資料):\r\n<code>/inbound [備註]</code>\r\n\r\nTelegram 聊天 ID:\r\n<code>/id</code>",
|
||||
"helpClientCommands": "要搜尋統計資料,請使用以下命令:\r\n<code>/usage [電子郵件]</code>\r\n\r\nTelegram 聊天 ID:\r\n<code>/id</code>",
|
||||
@@ -2520,14 +2519,7 @@
|
||||
"restartFailed": "❗ 操作錯誤。\r\n\r\n<code>錯誤: {{ .Error }}</code>.",
|
||||
"xrayNotRunning": "❗ Xray Core 未運行。",
|
||||
"startDesc": "顯示主選單",
|
||||
"helpDesc": "機器人幫助",
|
||||
"statusDesc": "檢查機器人狀態",
|
||||
"idDesc": "顯示您的 Telegram ID",
|
||||
"usageDesc": "查看客戶端用量:/usage 郵箱",
|
||||
"inboundDesc": "搜尋入站:/inbound 備註(管理員)",
|
||||
"restartDesc": "重啟 Xray 核心(管理員)",
|
||||
"broadcastDesc": "向所有客戶端群發訊息(管理員)",
|
||||
"clearallDesc": "重置所有客戶端流量(管理員)"
|
||||
"statusOk": "✅ 機器人運作正常!"
|
||||
},
|
||||
"messages": {
|
||||
"cpuThreshold": "CPU 使用率為 {{ .Percent }}%,超過閾值 {{ .Threshold }}%",
|
||||
@@ -2571,7 +2563,6 @@
|
||||
"inviteInvalid": "❗ 此邀請連結無效或已被使用。\r\n",
|
||||
"inviteRateLimited": "⏳ 邀請嘗試次數過多,請稍後再試。\r\n",
|
||||
"inviteRateLimitedAdmin": "⚠️ 已封鎖 {{ .User }}(<code>{{ .ID }}</code>)的邀請嘗試:一小時內超過 {{ .Limit }} 次。可能有人在猜測訂閱 ID。",
|
||||
"inviteLink": "🔗 <code>{{ .Email }}</code> 的邀請連結:\r\n<code>{{ .Link }}</code>\r\n\r\n第一個開啟它的人將綁定至此客戶端。\r\n",
|
||||
"exhaustedCount": "🚨 耗盡的 {{ .Type }} 數量:\r\n",
|
||||
"onlinesCount": "🌐 線上客戶:{{ .Count }}\r\n",
|
||||
"disabled": "🛑 禁用:{{ .Disabled }}\r\n",
|
||||
@@ -2580,13 +2571,11 @@
|
||||
"refreshedOn": "\r\n📋🔄 重新整理時間:{{ .Time }}\r\n\r\n",
|
||||
"yes": "✅ 是的",
|
||||
"no": "❌ 否",
|
||||
"received_email": "📧📥 電子郵件已更新。",
|
||||
"received_comment": "💬📥 評論已更新。",
|
||||
"email_prompt": "📧 預設電子郵件: {{ .ClientEmail }}\n\n請輸入您的電子郵件。",
|
||||
"comment_prompt": "💬 預設評論: {{ .ClientComment }}\n\n請輸入您的評論。",
|
||||
"tgid_prompt": "🆔 預設 TG 使用者:{{ .ClientTGID }}\n\n傳送使用者的數字 id 以綁定到此用戶端,或傳送 - / none 以清除。",
|
||||
"cancel": "❌ 程序已取消!\n\n您可以隨時使用 /start 重新開始。 🔄",
|
||||
"error_add_client": "⚠️ 錯誤:\n\n {{ .error }}",
|
||||
"using_default_value": "好的,我會使用預設值。 😊",
|
||||
"incorrect_input": "您的輸入無效。\n短語應連續輸入,不能有空格。\n正確示例: aaaaaa\n錯誤示例: aaa aaa 🚫",
|
||||
"broadcastAskText": "📤 群發:請把要發給客戶的訊息傳給我 — 文字、照片、影片、檔案或整個相簿都可以。",
|
||||
"broadcastAlreadyRunning": "❗ 已有群發正在進行,請等待其完成。",
|
||||
@@ -2610,7 +2599,23 @@
|
||||
"eventNodeDown": "節點 {{ .Name }} 已離線",
|
||||
"eventNodeUp": "節點 {{ .Name }} 已上線",
|
||||
"eventLoginFallback": "來自 {{ .Source }} 的登入失敗",
|
||||
"memoryThreshold": "記憶體使用率 {{ .Percent }}% 超過閾值 {{ .Threshold }}%"
|
||||
"memoryThreshold": "記憶體使用率 {{ .Percent }}% 超過閾值 {{ .Threshold }}%",
|
||||
"inboundsCount": "🔌 Inbounds: {{ .Count }}\r\n",
|
||||
"clientsCount": "👥 Clients: {{ .Count }}\r\n",
|
||||
"category_server": "🖥 伺服器",
|
||||
"category_clients": "👥 用戶端",
|
||||
"category_traffic": "🚦 流量",
|
||||
"category_maintenance": "⚙️ 維護",
|
||||
"inlineHint": "\r\n🔍 The list opens through search: tap Find and start typing.",
|
||||
"subURL": "🔗 Subscription: <code>{{ .URL }}</code>\r\n",
|
||||
"jsonURL": "🧩 JSON: <code>{{ .URL }}</code>\r\n",
|
||||
"inviteHint": "Send this link to the client: the first Telegram account to open it is bound to the client.",
|
||||
"qrLegendHeader": "🔳 QR 碼:",
|
||||
"qrLegendSubscription": "{{ .Code }}. 訂閱",
|
||||
"qrLegendJSON": "{{ .Code }}. JSON 訂閱",
|
||||
"qrLegendLink": "{{ .Code }}. 應用程式連結 {{ .App }}",
|
||||
"backupFailed": "無法讀取資料庫,未傳送備份。",
|
||||
"privateOnly": "🤖 此機器人僅在私聊中運作。請在私訊中開啟它。"
|
||||
},
|
||||
"buttons": {
|
||||
"closeKeyboard": "❌ 關閉鍵盤",
|
||||
@@ -2622,13 +2627,15 @@
|
||||
"confirmClearIps": "✅ 確認清除 IP?",
|
||||
"confirmRemoveTGUser": "✅ 確認移除 Telegram 使用者?",
|
||||
"confirmToggle": "✅ 確認啟用/禁用使用者?",
|
||||
"dbBackup": "獲取資料庫備份",
|
||||
"serverUsage": "伺服器使用情況",
|
||||
"getInbounds": "獲取入站資訊",
|
||||
"depleteSoon": "即將耗盡",
|
||||
"clientUsage": "獲取使用情況",
|
||||
"onlines": "線上客戶端",
|
||||
"commands": "命令",
|
||||
"dbBackup": "💾 獲取資料庫備份",
|
||||
"serverUsage": "📊 伺服器使用情況",
|
||||
"getInbounds": "🔌 獲取入站資訊",
|
||||
"depleteSoon": "⚠️ 即將耗盡",
|
||||
"onlines": "🟢 線上客戶端",
|
||||
"catServer": "🖥 伺服器",
|
||||
"catClients": "👥 用戶端",
|
||||
"catTraffic": "🚦 流量",
|
||||
"catMaintenance": "⚙️ 維護",
|
||||
"refresh": "🔄 重新整理",
|
||||
"clearIPs": "❌ 清除 IP",
|
||||
"removeTGUser": "❌ 移除 Telegram 使用者",
|
||||
@@ -2645,16 +2652,30 @@
|
||||
"confirmNumber": "✅ 確認: {{ .Num }}",
|
||||
"confirmNumberAdd": "✅ 確認新增:{{ .Num }}",
|
||||
"limitTraffic": "🚧 流量限制",
|
||||
"getBanLogs": "禁止日誌",
|
||||
"allClients": "所有客戶",
|
||||
"addClient": "新增客戶",
|
||||
"getBanLogs": "📄 禁止日誌",
|
||||
"allClients": "👥 所有客戶",
|
||||
"addClient": "➕ 新增客戶",
|
||||
"submitDisable": "以停用方式送出 ☑️",
|
||||
"submitEnable": "以啟用方式送出 ✅",
|
||||
"use_default": "🏷️ 使用預設值",
|
||||
"change_email": "⚙️📧 電子郵件",
|
||||
"change_comment": "⚙️💬 評論",
|
||||
"ResetAllTraffics": "重設所有流量",
|
||||
"SortedTrafficUsageReport": "排序過的流量使用報告"
|
||||
"ResetAllTraffics": "♻️ 重設所有流量",
|
||||
"SortedTrafficUsageReport": "📈 排序過的流量使用報告",
|
||||
"restartXray": "♻️ Restart Xray",
|
||||
"back": "⬅️ Back",
|
||||
"hide": "🙈 Hide",
|
||||
"page": "Page {{ .Page }} of {{ .Pages }}",
|
||||
"searchInbounds": "🔍 Find inbound…",
|
||||
"searchClients": "🔍 Find client…",
|
||||
"inlineDisabled": "⚠️ Inline mode is off",
|
||||
"clientCard": "⬅️ Client card",
|
||||
"links": "🔗 Links",
|
||||
"individualLinks": "🔗 Individual links",
|
||||
"qrCode": "🔳 QR code",
|
||||
"broadcast": "📢 廣播",
|
||||
"attachInbound": "關聯入站 ({{ .Count }})",
|
||||
"attachDone": "✅ 完成"
|
||||
},
|
||||
"answers": {
|
||||
"broadcastStarted": "🚀 群發已開始。",
|
||||
@@ -2682,6 +2703,36 @@
|
||||
"chooseClient": "為入站 {{ .Inbound }} 選擇一個客戶",
|
||||
"chooseInbound": "選擇一個入站",
|
||||
"qrCodeForClient": "客戶端 {{ .Email }} 的二維碼:"
|
||||
},
|
||||
"screens": {
|
||||
"panel": "Panel",
|
||||
"main": "Main",
|
||||
"status": "Server",
|
||||
"inbounds": "Inbounds",
|
||||
"clients": "Clients",
|
||||
"client": "Client",
|
||||
"links": "Links",
|
||||
"qr": "QR code",
|
||||
"wizard": "New client",
|
||||
"reports": "Report",
|
||||
"backup": "Backup",
|
||||
"onlines": "Online",
|
||||
"deplete": "Running out",
|
||||
"commands": "Commands",
|
||||
"broadcast": "Broadcast"
|
||||
},
|
||||
"inline": {
|
||||
"noneTitle": "Nothing found",
|
||||
"noneDesc": "Use @BotFather /setinline to enable the list.",
|
||||
"offTitle": "⚠️ Inline mode is disabled for this bot",
|
||||
"offBody": "Lists are browsed in inline mode. Enable it in @BotFather: /setinline, then tap Check again.",
|
||||
"recheck": "Check again",
|
||||
"expired": "已過期",
|
||||
"fromFirstUse": "自首次使用"
|
||||
},
|
||||
"noValue": "—",
|
||||
"notices": {
|
||||
"repeat": "\r\n\r\n🔁 repeated {{ .Count }}× · last {{ .Time }}"
|
||||
}
|
||||
},
|
||||
"discord": {
|
||||
|
||||
Reference in New Issue
Block a user