mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #1500] [MERGED] socks5 proxy option added to telegram bot settings #4934
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#4934
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/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)
1635dbfsocks5 option added to telegram bot settingsc6a9a04update 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.