[PR #5255] [CLOSED] feat(tgbot): add dedicated outbound/balancer tag for Telegram bot #5833

Closed
opened 2026-11-02 04:04:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5255
Author: @Ssentiago
Created: 6/13/2026
Status: ❌ Closed

Base: main ← Head: fix/tgbot-outbound-routing


📝 Commits (1)

  • 6957048 feat(tgbot): add dedicated outbound/balancer tag for Telegram bot routing

📊 Changes

9 files changed (+189 additions, -10 deletions)

View changed files

📝 frontend/src/models/setting.ts (+1 -0)
📝 frontend/src/pages/settings/TelegramTab.tsx (+66 -1)
📝 internal/web/controller/setting.go (+7 -1)
📝 internal/web/entity/entity.go (+1 -0)
📝 internal/web/service/setting.go (+31 -0)
📝 internal/web/service/tgbot/tgbot.go (+4 -4)
📝 internal/web/service/xray.go (+69 -0)
📝 internal/web/translation/en-US.json (+5 -2)
📝 internal/web/translation/ru-RU.json (+5 -2)

📄 Description

Adds a dedicated outbound/balancer tag setting (tgBotOutbound) for the Telegram bot, allowing independent routing of bot traffic through Xray without affecting the panel's own outbound.

What's new:

  • tgBotOutbound setting — select an outbound or balancer tag specifically for the bot
  • Separate loopback SOCKS bridge (tgbot-egress, port 62800+) — no conflicts with panel egress
  • Outbound picker in Settings > Telegram Bot
  • Auto-restart Xray when outbound setting changes
  • Fallback chain: tgBotOutbound → panelOutbound → direct

Files changed:

  • frontend/src/models/setting.ts
  • frontend/src/pages/settings/TelegramTab.tsx
  • internal/web/controller/setting.go
  • internal/web/entity/entity.go
  • internal/web/service/setting.go
  • internal/web/service/tgbot/tgbot.go
  • internal/web/service/xray.go
  • internal/web/translation/en-US.json
  • internal/web/translation/ru-RU.json

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5255 **Author:** [@Ssentiago](https://github.com/Ssentiago) **Created:** 6/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/tgbot-outbound-routing` --- ### 📝 Commits (1) - [`6957048`](https://github.com/MHSanaei/3x-ui/commit/69570482b86cf0efdc0ed0a13221b49a2b950e31) feat(tgbot): add dedicated outbound/balancer tag for Telegram bot routing ### 📊 Changes **9 files changed** (+189 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/models/setting.ts` (+1 -0) 📝 `frontend/src/pages/settings/TelegramTab.tsx` (+66 -1) 📝 `internal/web/controller/setting.go` (+7 -1) 📝 `internal/web/entity/entity.go` (+1 -0) 📝 `internal/web/service/setting.go` (+31 -0) 📝 `internal/web/service/tgbot/tgbot.go` (+4 -4) 📝 `internal/web/service/xray.go` (+69 -0) 📝 `internal/web/translation/en-US.json` (+5 -2) 📝 `internal/web/translation/ru-RU.json` (+5 -2) </details> ### 📄 Description Adds a dedicated outbound/balancer tag setting (`tgBotOutbound`) for the Telegram bot, allowing independent routing of bot traffic through Xray without affecting the panel's own outbound. **What's new:** - `tgBotOutbound` setting — select an outbound or balancer tag specifically for the bot - Separate loopback SOCKS bridge (`tgbot-egress`, port 62800+) — no conflicts with panel egress - Outbound picker in Settings > Telegram Bot - Auto-restart Xray when outbound setting changes - Fallback chain: `tgBotOutbound` → `panelOutbound` → direct **Files changed:** - `frontend/src/models/setting.ts` - `frontend/src/pages/settings/TelegramTab.tsx` - `internal/web/controller/setting.go` - `internal/web/entity/entity.go` - `internal/web/service/setting.go` - `internal/web/service/tgbot/tgbot.go` - `internal/web/service/xray.go` - `internal/web/translation/en-US.json` - `internal/web/translation/ru-RU.json` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5833
No description provided.