mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-25 07: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:
@@ -120,6 +120,10 @@ func run(root, outDir string) error {
|
||||
Path: resolveRel(root, "internal/web/service/panel"),
|
||||
StructAllow: setOf("ApiTokenView", "PanelUpdateStatus", "Sponsor", "SponsorList"),
|
||||
},
|
||||
{
|
||||
Path: resolveRel(root, "internal/web/controller"),
|
||||
StructAllow: setOf("TgBotCapabilities"),
|
||||
},
|
||||
{
|
||||
Path: resolveRel(root, "internal/amneziawg"),
|
||||
StructAllow: setOf("ServerSettings"),
|
||||
|
||||
Reference in New Issue
Block a user