feat(tgbot): register usage, inbound, restart and clearall in the bot command menu

The Telegram command menu listed only start/help/status/id although usage, inbound and restart were already handled, and resetting all traffic was reachable only through inline keyboards. Register all handled commands with localized descriptions and add an admin-gated /clearall command that reuses the existing reset-all confirmation keyboard, so nothing destructive runs without an explicit confirm.

Closes #5307
This commit is contained in:
MHSanaei
2026-07-03 09:36:53 +02:00
parent 220dcb1579
commit 1f04912b6f
15 changed files with 84 additions and 13 deletions
+5 -1
View File
@@ -2007,7 +2007,11 @@
"startDesc": "Показать главное меню",
"helpDesc": "Справка по боту",
"statusDesc": "Проверить статус бота",
"idDesc": "Показать ваш Telegram ID"
"idDesc": "Показать ваш Telegram ID",
"usageDesc": "Показать трафик клиента: /usage email",
"inboundDesc": "Поиск входящих: /inbound имя (админ)",
"restartDesc": "Перезапустить ядро Xray (админ)",
"clearallDesc": "Сбросить трафик всех клиентов (админ)"
},
"messages": {
"cpuThreshold": "Загрузка процессора составляет {{ .Percent }}%, что превышает пороговое значение {{ .Threshold }}%",