[PR #2584] [MERGED] feat(tgbot): Add the option to change the telegram API server #5160

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2584
Author: @MadrinX
Created: 10/16/2024
Status: ✅ Merged
Merged: 10/17/2024
Merged by: @MHSanaei

Base: main ← Head: main


📝 Commits (4)

  • 85da830 feat(tgbot): Add the option to change the telegram API server
  • d04db44 feat(tgbot): Add validate for API Server URL
  • 506e3ee fix(tgbot): missed variable name change
  • 4a7bbc1 Refactor Tgbot creation and improve logging

📊 Changes

16 files changed (+73 additions, -19 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 (+31 -11)
📝 web/translation/translate.en_US.toml (+2 -0)
📝 web/translation/translate.es_ES.toml (+3 -1)
📝 web/translation/translate.fa_IR.toml (+3 -1)
📝 web/translation/translate.id_ID.toml (+3 -1)
📝 web/translation/translate.pt_BR.toml (+2 -0)
📝 web/translation/translate.ru_RU.toml (+2 -0)
📝 web/translation/translate.tr_TR.toml (+3 -1)
📝 web/translation/translate.uk_UA.toml (+3 -1)
📝 web/translation/translate.vi_VN.toml (+3 -1)
📝 web/translation/translate.zh_CN.toml (+3 -1)
📝 web/translation/translate.zh_TW.toml (+3 -1)

📄 Description

If someone has a custom bot API server or proxied API server this lets them use it.


🔄 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/2584 **Author:** [@MadrinX](https://github.com/MadrinX) **Created:** 10/16/2024 **Status:** ✅ Merged **Merged:** 10/17/2024 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`85da830`](https://github.com/MHSanaei/3x-ui/commit/85da8300f982c28ca345b70eb1e8f061a3145d6e) feat(tgbot): Add the option to change the telegram API server - [`d04db44`](https://github.com/MHSanaei/3x-ui/commit/d04db44190dff44983be4ccbc2627d0d12ac0c31) feat(tgbot): Add validate for API Server URL - [`506e3ee`](https://github.com/MHSanaei/3x-ui/commit/506e3ee08a0eb089a1e5fa7c3d013c1674d4065c) fix(tgbot): missed variable name change - [`4a7bbc1`](https://github.com/MHSanaei/3x-ui/commit/4a7bbc140493288d45b125d38a88378902a3fecd) Refactor Tgbot creation and improve logging ### 📊 Changes **16 files changed** (+73 additions, -19 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` (+31 -11) 📝 `web/translation/translate.en_US.toml` (+2 -0) 📝 `web/translation/translate.es_ES.toml` (+3 -1) 📝 `web/translation/translate.fa_IR.toml` (+3 -1) 📝 `web/translation/translate.id_ID.toml` (+3 -1) 📝 `web/translation/translate.pt_BR.toml` (+2 -0) 📝 `web/translation/translate.ru_RU.toml` (+2 -0) 📝 `web/translation/translate.tr_TR.toml` (+3 -1) 📝 `web/translation/translate.uk_UA.toml` (+3 -1) 📝 `web/translation/translate.vi_VN.toml` (+3 -1) 📝 `web/translation/translate.zh_CN.toml` (+3 -1) 📝 `web/translation/translate.zh_TW.toml` (+3 -1) </details> ### 📄 Description If someone has a [custom bot API server](https://core.telegram.org/bots/api#using-a-local-bot-api-server) or proxied API server this lets them use it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:45:06 +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#5160
No description provided.