[PR #1500] [MERGED] socks5 proxy option added to telegram bot settings #4934

Closed
opened 2026-10-31 20:43:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/1500
Author: @surbiks
Created: 1/2/2024
Status: ✅ Merged
Merged: 1/2/2024
Merged by: @MHSanaei

Base: main ← Head: socks5-proxy-option-for-telegram-bot


📝 Commits (2)

  • 1635dbf socks5 option added to telegram bot settings
  • c6a9a04 update socks5 proxy settings translations

📊 Changes

12 files changed (+53 additions, -2 deletions)

View changed files

📝 web/assets/js/model/setting.js (+1 -0)
📝 web/entity/entity.go (+1 -0)
📝 web/html/xui/settings.html (+1 -0)
📝 web/service/setting.go (+9 -0)
📝 web/service/tgbot.go (+26 -1)
📝 web/translation/translate.en_US.toml (+2 -0)
📝 web/translation/translate.es_ES.toml (+2 -0)
📝 web/translation/translate.fa_IR.toml (+2 -0)
📝 web/translation/translate.ru_RU.toml (+2 -0)
📝 web/translation/translate.vi_VN.toml (+2 -0)
📝 web/translation/translate.zh_Hans.toml (+2 -0)
📝 xray/api.go (+3 -1)

📄 Description

In some cases, we need to install the panel on a server that does not have access to Telegram. A proxy must be used for this purpose. In this patch, we added proxy settings to the Telegram bot section. for this, you only need to define a socks5 inbound for the panel at the address 127.0.0.1 with a random port and place this setting in the Telegram bot section. In this way, the Telegram bot uses the panel itself to connect.


🔄 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/1500 **Author:** [@surbiks](https://github.com/surbiks) **Created:** 1/2/2024 **Status:** ✅ Merged **Merged:** 1/2/2024 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `socks5-proxy-option-for-telegram-bot` --- ### 📝 Commits (2) - [`1635dbf`](https://github.com/MHSanaei/3x-ui/commit/1635dbf8beefd3432dec0e307110f8a6d8b71c6a) socks5 option added to telegram bot settings - [`c6a9a04`](https://github.com/MHSanaei/3x-ui/commit/c6a9a0459d07d0c30cb37701b27f87e9522ffbce) update socks5 proxy settings translations ### 📊 Changes **12 files changed** (+53 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/js/model/setting.js` (+1 -0) 📝 `web/entity/entity.go` (+1 -0) 📝 `web/html/xui/settings.html` (+1 -0) 📝 `web/service/setting.go` (+9 -0) 📝 `web/service/tgbot.go` (+26 -1) 📝 `web/translation/translate.en_US.toml` (+2 -0) 📝 `web/translation/translate.es_ES.toml` (+2 -0) 📝 `web/translation/translate.fa_IR.toml` (+2 -0) 📝 `web/translation/translate.ru_RU.toml` (+2 -0) 📝 `web/translation/translate.vi_VN.toml` (+2 -0) 📝 `web/translation/translate.zh_Hans.toml` (+2 -0) 📝 `xray/api.go` (+3 -1) </details> ### 📄 Description In some cases, we need to install the panel on a server that does not have access to Telegram. A proxy must be used for this purpose. In this patch, we added proxy settings to the Telegram bot section. for this, you only need to define a socks5 inbound for the panel at the address 127.0.0.1 with a random port and place this setting in the Telegram bot section. In this way, the Telegram bot uses the panel itself to connect. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:43:39 +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#4934
No description provided.