mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-17 10:35:02 +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>) の招待の試行をブロックしました:1 時間に {{ .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": "📤 一括送信:クライアントに配信するメッセージを送ってください — テキスト、写真、動画、ファイル、アルバム全体も OK。",
|
||||
"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 }} のQRコード:"
|
||||
},
|
||||
"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