mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5782] [Question]: Proxy for telegram test message #4022
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#4022
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 @pythonfree on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5782
What are you trying to do?
Hello! How can I set up a proxy to send test messages to Telegram? Previously, this feature was available, but it disappeared on June 24, 2026.
What have you already tried?
No response
3x-ui version
3.4.2
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Screenshots or config snippets
No response
Before submitting
@pythonfree commented on GitHub (Jul 4, 2026):
"Тест Telegram не удался: telegram API test failed: API unreachable: telego: getMe: internal execution: request call: fasthttp do request: error when dialing 149.154.166.110:443: dialing to the given TCP address timed out (telegram API test failed: API unreachable: telego: getMe: internal execution: request call: fasthttp do request: error when dialing 149.154.166.110:443: dialing to the given TCP address timed out)"
@github-actions[bot] commented on GitHub (Jul 4, 2026):
The dedicated raw Telegram-bot proxy field is gone from the Settings → Telegram tab, but the feature to route the bot (including the Send Test Message button) through a proxy is still there, just moved. Here is what I confirmed in the current (v3.4.2) source:
1. Where the proxy setting lives now
frontend/src/pages/settings/TelegramTab.tsxonly exposes token, chat ID, language, API server and the test button — no proxy input. The replacement is Settings → General → "Panel Traffic Outbound" (panelOutbound). Its description confirms it covers Telegram:To use it:
outboundsarray, and give it a tag.This makes the panel inject a loopback SOCKS5 bridge into the running Xray config and route the Telegram bot's HTTP client through it whenever the bot's own
tgBotProxyvalue is empty (confirmed ininternal/web/service/setting.goPanelEgressProxyURL()and the fallback logic ininternal/web/service/tgbot/tgbot.go, lines ~293-306).2. Important: a Settings "Save" is not enough
The bot only re-reads its proxy when it (re)starts. Saving settings now auto-reloads the bot (added in commit
93ff60e5), but only whentgBotEnable, the token, chat ID, or API server changed (internal/web/controller/setting.go, lines ~134-141) — apanelOutboundortgBotProxychange is not in that list. So after configuring the outbound, you need a full panel restart (x-uimenu → restart, orsystemctl restart x-ui) before the bot picks it up.3. Setting a raw proxy URL directly (if you don't want to route all panel traffic)
The backend still fully supports a dedicated
tgBotProxyvalue (socks5://,http://, orhttps://, checked inisSupportedBotProxyScheme()intgbot.go) and it takes priority overpanelOutboundwhen both are set — there is just no UI field for it. You can set it directly and restart:4. About "Send Test Message"
After restarting, use the Send Test Message button on the Telegram tab. It genuinely sends a real message to your configured chat ID (
SendMsgToTgbotAdmins("✅ Test message from 3x-ui"), wired ininternal/web/web.go), so it will confirm whether the proxy path actually works.I could not find a commit that removed a dedicated Telegram-proxy UI field specifically on June 24 — the
TelegramTab.tsxalready had no such field before that date (confirmed by diffing PR #5326, merged June 15, which only added the test button). If you were looking at a specific screen that had a proxy field, a screenshot or the exact panel version where you last saw it would help pin down which release that was.This reply was generated automatically; a maintainer may follow up.
@pythonfree commented on GitHub (Jul 4, 2026):
Thank you, this helped me:
sqlite3 /etc/x-ui/x-ui.db "INSERT INTO settings (key, value) VALUES ('tgBotProxy', 'socks5://porxylogin:proxypass@myproxyip:1080');"