mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5615] [CLOSED] Add Telegram proxy configuration UI and validate bot backup chat IDs #5931
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#5931
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5615
Author: @Amirwopi
Created: 6/27/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
5fb6444Add Telegram proxy configuration UI and validate bot backup chat IDs5510ecdfix: keep Telegram proxy mode editable and preserve tgBotProxy📊 Changes
19 files changed (+249 additions, -44 deletions)
View changed files
📝
frontend/src/models/setting.ts(+1 -0)📝
frontend/src/pages/settings/TelegramTab.tsx(+157 -1)➕
frontend/src/test/telegram-proxy.test.tsx(+23 -0)📝
internal/database/db.go(+3 -3)📝
internal/web/service/tgbot/tgbot.go(+20 -12)📝
internal/web/service/tgbot/tgbot_test.go(+17 -0)📝
internal/web/translation/ar-EG.json(+2 -2)📝
internal/web/translation/en-US.json(+3 -3)📝
internal/web/translation/es-ES.json(+2 -2)📝
internal/web/translation/fa-IR.json(+3 -3)📝
internal/web/translation/id-ID.json(+2 -2)📝
internal/web/translation/ja-JP.json(+2 -2)📝
internal/web/translation/pt-BR.json(+2 -2)📝
internal/web/translation/ru-RU.json(+2 -2)📝
internal/web/translation/tr-TR.json(+2 -2)📝
internal/web/translation/uk-UA.json(+2 -2)📝
internal/web/translation/vi-VN.json(+2 -2)📝
internal/web/translation/zh-CN.json(+2 -2)📝
internal/web/translation/zh-TW.json(+2 -2)📄 Description
Summary
This PR adds Telegram proxy configuration to the panel UI so the bot can run through
SOCKS5,HTTP, orHTTPSproxies. It alsohardens Telegram admin chat ID parsing for backup delivery and clarifies backup behavior for both SQLite and PostgreSQL panels.
Changes
tgBotProxyto the frontend settings modelSOCKS5,HTTP, andHTTPSBehavior
.db.dumpValidation
go test ./internal/web/service/tgbotnpm cinpm run typecheck🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.