mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4871] [Bug]: Telegram bot proxy settings removed from panel UI but still honored by backend #3402
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3402
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yukh975 on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4871
Describe the bug
In earlier versions of the panel settings there were fields to configure a proxy for the Telegram bot. In the current version these fields are gone from the UI, so there's no way to set or change the Telegram proxy through the panel anymore.
However, the old settings that were previously added to x-ui.db are still read and used by the backend — the Telegram bot continues to work through the proxy configured under the earlier version. So the functionality still exists on the backend, but it's no longer exposed in the panel.
Result
New installs / users who never set this value have no way to configure a Telegram bot proxy from the UI.
Existing users who had it configured keep working, but can't view or change the setting from the panel — only by editing x-ui.db directly.
How to reproduce the problem
For a fresh install on the current version, there is no way to set the Telegram bot proxy from the UI at all.
Expected behavior
Either restore the Telegram bot proxy fields in the panel settings, or document that the setting is intentionally backend-only and how to set it.
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.6
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
Debian 13
Which parts of the panel are affected?
Frontend (UI / panel pages)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
Yes — Caddy
Before submitting
@github-actions[bot] commented on GitHub (Jun 3, 2026):
Thank you for the detailed report — your observations are correct, and here is what is happening in the code.
What changed
The per-bot
tgBotProxysetting was intentionally replaced with a panel-wide proxy in ~v3.2.x (see #4706). The dedicated Telegram proxy UI fields were removed from the Telegram settings tab and a single "Panel Network Proxy" field was added to the General settings tab instead.Where to set it now
Settings → General → Panel Network Proxy (
panelProxy)The field description reads:
So configuring a proxy there will cover the Telegram bot.
Why existing setups keep working
The backend (
web/service/tgbot.go) falls back gracefully:tgBotProxyfrom the DB first.panelProxy.Old installations that had
tgBotProxyset before the migration still have that value inx-ui.db, so the bot continues working through it. The value just cannot be viewed or cleared from the current UI — which is the legitimate UX gap you identified.Workaround for existing users who want to migrate
If you previously had
tgBotProxyset and want to consolidate to the new field:tgBotProxyvalue from the DB directly: (Run against/etc/x-ui/x-ui.dbviasqlite3, then restartx-ui.)After that the bot will use
panelProxy.Summary
tgBotProxyvalues still work; optionally migrate using the steps above.The remaining gap is that the Telegram settings tab gives no indication that its proxy lives in General settings, which can confuse users. That would be worth a small UI hint or tooltip on the Telegram tab.