mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5373] [Feature]: Operation of telegram notifications of the panel through the selected outbound #3761
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#3761
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 @MiraMaX166 on GitHub (Jun 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5373
Is your feature request related to a problem?
In some countries, Telegram is blocked by shameful services
Describe the solution you'd like
In the settings of telegram notifications, the label directs traffic through and in the drop-down list of options "direct, list of outbounds"
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 16, 2026):
The core of this request — routing Telegram bot traffic through an Xray outbound on a server where Telegram is blocked — is already implemented via the Panel Traffic Outbound setting.
What currently exists
Settings → General → Panel Traffic Outbound(panelOutbound) accepts any outbound tag from your Xray config (including balancer tags). When set, the panel automatically injects a loopback SOCKS bridge into the running Xray config and routes all panel-originated outbound requests through it, explicitly including Telegram bot traffic. This is confirmed in:internal/web/service/setting.go—GetPanelOutbound()/PanelEgressProxyURL()(lines 417–450): resolves the tag to asocks5://127.0.0.1:<port>address pointing to the injected bridge.internal/web/service/tgbot/tgbot.go(lines 244–248): the bot falls back toPanelEgressProxyURL()when no dedicatedtgBotProxyvalue is set.internal/web/translation/en-US.json(line 1006): the setting description reads: "Routes the panel's own requests — panel/Xray version checks and downloads, Telegram, and the normal geo-file update — through this Xray outbound …"The loopback bridge is applied live; no restart is required after saving.
How to use it now
api.telegram.org(e.g. a VLESS/VMess/Shadowsocks outbound pointing to a server outside the filtered country, or a WARP outbound).What this request adds beyond the current feature
Your specific proposal — a dedicated outbound picker inside the Telegram bot settings section — would give per-feature granularity (Telegram outbound independently from other panel traffic such as update checks and geo downloads). That is a valid incremental enhancement on top of the existing mechanism. The existing infrastructure (
injectPanelEgress,PanelEgressProxyURL, thetelegobot's proxy plumbing) already provides a clear path to implement this: it would need a newtgBotOutboundsetting, a corresponding UI control in the Telegram bot settings page, and a lookup intgbot.Start()that callsPanelEgressProxyURL()with that tag before falling back to the panel-wide one.Related prior issues for context: #5058 (closed — routed to same existing feature), #4718, #4102.
Since you indicated you would like to implement this yourself, the above should give you a concrete starting point.
This reply was generated automatically; a maintainer may follow up.
@MiraMaX166 commented on GitHub (Jun 16, 2026):
Да, прошу прощения. Проглядел.