mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-16 18:15:01 +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": "Uploaded",
|
||||
"expiry": "Expiry",
|
||||
"totalQuota": "Total quota",
|
||||
"individualLinks": "Individual links",
|
||||
"active": "Active",
|
||||
"inactive": "Inactive",
|
||||
"unlimited": "Unlimited",
|
||||
@@ -1950,6 +1949,11 @@
|
||||
"subIncyResolveDnsIp": "DoH server IP",
|
||||
"subIncyResolveDnsIpDesc": "IP of the DoH server, used for bootstrap.",
|
||||
"subIncyGroupRouting": "Routing",
|
||||
"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": "Group Privacy is on",
|
||||
"tgPrivacyOnDesc": "This bot answers in private chat only, so groups are ignored on purpose. Group Privacy only decides whether the bot may read group messages, which it does not use.",
|
||||
"subHostSortMode": "Subscription Node Ordering",
|
||||
"subHostSortInbound": "Inbound order (default)",
|
||||
"subHostSortHosts": "Hosts order",
|
||||
@@ -2486,7 +2490,6 @@
|
||||
}
|
||||
},
|
||||
"tgbot": {
|
||||
"keyboardClosed": "❌ Custom keyboard closed!",
|
||||
"noResult": "❗ No result!",
|
||||
"noQuery": "❌ Query not found! Please use the command again!",
|
||||
"wentWrong": "❌ Something went wrong!",
|
||||
@@ -2508,10 +2511,6 @@
|
||||
"unknown": "❗ Unknown command.",
|
||||
"pleaseChoose": "👇 Please choose:\r\n",
|
||||
"help": "🤖 Welcome to this bot! It's designed to offer specific data from the web panel and allows you to make modifications as needed.\r\n\r\n",
|
||||
"start": "👋 Hello <i>{{ .Firstname }}</i>.\r\n",
|
||||
"welcome": "🤖 Welcome to <b>{{ .Hostname }}</b> management bot.\r\n",
|
||||
"status": "✅ Bot is OK!",
|
||||
"usage": "❗ Please provide a text to search!",
|
||||
"getID": "🆔 Your ID: <code>{{ .ID }}</code>",
|
||||
"helpAdminCommands": "To restart Xray Core:\r\n<code>/restart</code>\r\n\r\nTo search for a client email:\r\n<code>/usage [Email]</code>\r\n\r\nTo search for inbounds (with client stats):\r\n<code>/inbound [Remark]</code>\r\n\r\nTelegram Chat ID:\r\n<code>/id</code>",
|
||||
"helpClientCommands": "To search for statistics, use the following command:\r\n\r\n<code>/usage [Email]</code>\r\n\r\nTelegram Chat ID:\r\n<code>/id</code>",
|
||||
@@ -2520,14 +2519,7 @@
|
||||
"restartFailed": "❗ Error in operation.\r\n\r\n<code>Error: {{ .Error }}</code>.",
|
||||
"xrayNotRunning": "❗ Xray Core is not running.",
|
||||
"startDesc": "Show the main menu",
|
||||
"helpDesc": "Bot help",
|
||||
"statusDesc": "Check bot status",
|
||||
"idDesc": "Show your Telegram ID",
|
||||
"usageDesc": "Show client usage: /usage email",
|
||||
"inboundDesc": "Search inbounds: /inbound remark (admin)",
|
||||
"restartDesc": "Restart Xray core (admin)",
|
||||
"broadcastDesc": "Broadcast a message to all clients (admin)",
|
||||
"clearallDesc": "Reset all clients' traffic (admin)"
|
||||
"statusOk": "✅ Bot is OK!"
|
||||
},
|
||||
"messages": {
|
||||
"cpuThreshold": "CPU Load {{ .Percent }}% exceeds the threshold of {{ .Threshold }}%",
|
||||
@@ -2571,7 +2563,6 @@
|
||||
"inviteInvalid": "❗ This invite link is invalid or has already been used.\r\n",
|
||||
"inviteRateLimited": "⏳ Too many invite attempts. Please try again later.\r\n",
|
||||
"inviteRateLimitedAdmin": "⚠️ Invite attempts blocked for {{ .User }} (<code>{{ .ID }}</code>): more than {{ .Limit }} tries in an hour. Someone may be guessing Subscription IDs.",
|
||||
"inviteLink": "🔗 Invite link for <code>{{ .Email }}</code>:\r\n<code>{{ .Link }}</code>\r\n\r\nThe first person to open it is linked to this client.\r\n",
|
||||
"exhaustedCount": "🚨 Exhausted {{ .Type }} count:\r\n",
|
||||
"onlinesCount": "🌐 Online Clients: {{ .Count }}\r\n",
|
||||
"disabled": "🛑 Disabled: {{ .Disabled }}\r\n",
|
||||
@@ -2580,13 +2571,11 @@
|
||||
"refreshedOn": "\r\n📋🔄 Refreshed On: {{ .Time }}\r\n\r\n",
|
||||
"yes": "✅ Yes",
|
||||
"no": "❌ No",
|
||||
"received_email": "📧📥 Email updated.",
|
||||
"received_comment": "💬📥 Comment updated.",
|
||||
"email_prompt": "📧 Default Email: {{ .ClientEmail }}\n\nEnter your email.",
|
||||
"comment_prompt": "💬 Default Comment: {{ .ClientComment }}\n\nEnter your comment.",
|
||||
"tgid_prompt": "🆔 Default TG user: {{ .ClientTGID }}\n\nSend the numeric user id to attach to this client, or send - / none to clear.",
|
||||
"cancel": "❌ Process Canceled! \n\nYou can /start again anytime. 🔄",
|
||||
"error_add_client": "⚠️ Error:\n\n {{ .error }}",
|
||||
"using_default_value": "Okay, I'll stick with the default value. 😊",
|
||||
"incorrect_input": "Your input is not valid.\nThe phrases should be continuous without spaces.\nCorrect example: aaaaaa\nIncorrect example: aaa aaa 🚫",
|
||||
"broadcastAskText": "📤 Broadcast: send me the message to deliver to your clients — text, photo, video, file or a whole album.",
|
||||
"broadcastAlreadyRunning": "❗ A broadcast is already running, please wait for it to finish.",
|
||||
@@ -2610,7 +2599,23 @@
|
||||
"eventNodeDown": "Node {{ .Name }} is DOWN",
|
||||
"eventNodeUp": "Node {{ .Name }} is UP",
|
||||
"eventLoginFallback": "Login failed from {{ .Source }}",
|
||||
"memoryThreshold": "Memory Load {{ .Percent }}% exceeds the threshold of {{ .Threshold }}%"
|
||||
"memoryThreshold": "Memory Load {{ .Percent }}% exceeds the threshold of {{ .Threshold }}%",
|
||||
"inboundsCount": "🔌 Inbounds: {{ .Count }}\r\n",
|
||||
"clientsCount": "👥 Clients: {{ .Count }}\r\n",
|
||||
"category_server": "🖥 Server",
|
||||
"category_clients": "👥 Clients",
|
||||
"category_traffic": "🚦 Traffic",
|
||||
"category_maintenance": "⚙️ 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 codes:",
|
||||
"qrLegendSubscription": "{{ .Code }}. Subscription",
|
||||
"qrLegendJSON": "{{ .Code }}. JSON subscription",
|
||||
"qrLegendLink": "{{ .Code }}. App link {{ .App }}",
|
||||
"backupFailed": "Could not read the database; no backup was sent.",
|
||||
"privateOnly": "🤖 This bot works in private chat only. Please open it in a direct message."
|
||||
},
|
||||
"buttons": {
|
||||
"closeKeyboard": "❌ Close Keyboard",
|
||||
@@ -2622,13 +2627,15 @@
|
||||
"confirmClearIps": "✅ Confirm Clear IPs?",
|
||||
"confirmRemoveTGUser": "✅ Confirm Remove Telegram User?",
|
||||
"confirmToggle": "✅ Confirm Enable/Disable User?",
|
||||
"dbBackup": "Get DB Backup",
|
||||
"serverUsage": "Server Usage",
|
||||
"getInbounds": "Get Inbounds",
|
||||
"depleteSoon": "Deplete Soon",
|
||||
"clientUsage": "Get Usage",
|
||||
"onlines": "Online Clients",
|
||||
"commands": "Commands",
|
||||
"dbBackup": "💾 Get DB Backup",
|
||||
"serverUsage": "📊 Server Usage",
|
||||
"getInbounds": "🔌 Get Inbounds",
|
||||
"depleteSoon": "⚠️ Deplete Soon",
|
||||
"onlines": "🟢 Online Clients",
|
||||
"catServer": "🖥 Server",
|
||||
"catClients": "👥 Clients",
|
||||
"catTraffic": "🚦 Traffic",
|
||||
"catMaintenance": "⚙️ Maintenance",
|
||||
"refresh": "🔄 Refresh",
|
||||
"clearIPs": "❌ Clear IPs",
|
||||
"removeTGUser": "❌ Remove Telegram User",
|
||||
@@ -2645,16 +2652,30 @@
|
||||
"confirmNumber": "✅ Confirm: {{ .Num }}",
|
||||
"confirmNumberAdd": "✅ Confirm adding: {{ .Num }}",
|
||||
"limitTraffic": "🚧 Traffic Limit",
|
||||
"getBanLogs": "Get Ban Logs",
|
||||
"allClients": "All Clients",
|
||||
"addClient": "Add Client",
|
||||
"getBanLogs": "📄 Get Ban Logs",
|
||||
"allClients": "👥 All Clients",
|
||||
"addClient": "➕ Add Client",
|
||||
"submitDisable": "Submit As Disable ☑️",
|
||||
"submitEnable": "Submit As Enable ✅",
|
||||
"use_default": "🏷️ Use default",
|
||||
"change_email": "⚙️📧 Email",
|
||||
"change_comment": "⚙️💬 Comment",
|
||||
"ResetAllTraffics": "Reset All Traffic",
|
||||
"SortedTrafficUsageReport": "Sorted Traffic Usage Report"
|
||||
"ResetAllTraffics": "♻️ Reset All Traffic",
|
||||
"SortedTrafficUsageReport": "📈 Sorted Traffic Usage Report",
|
||||
"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": "📢 Broadcast",
|
||||
"attachInbound": "Attach inbound ({{ .Count }})",
|
||||
"attachDone": "✅ Done"
|
||||
},
|
||||
"answers": {
|
||||
"broadcastStarted": "🚀 Broadcast started.",
|
||||
@@ -2682,6 +2703,36 @@
|
||||
"chooseClient": "Choose a Client for Inbound {{ .Inbound }}",
|
||||
"chooseInbound": "Choose an Inbound",
|
||||
"qrCodeForClient": "QRCode for client {{ .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": "expired",
|
||||
"fromFirstUse": "from first use"
|
||||
},
|
||||
"noValue": "—",
|
||||
"notices": {
|
||||
"repeat": "\r\n\r\n🔁 repeated {{ .Count }}× · last {{ .Time }}"
|
||||
}
|
||||
},
|
||||
"discord": {
|
||||
|
||||
Reference in New Issue
Block a user