[PR #2965] [MERGED] Added 3 new buttons to telegram bot #5311

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2965
Author: @nistootsin
Created: 5/2/2025
Status: ✅ Merged
Merged: 5/6/2025
Merged by: @MHSanaei

Base: main ← Head: bot_develop


📝 Commits (9)

  • e297c50 Add a new button to but : Reset All Clients
  • 7e41bb2 handel translation for Reset All Clients button
  • bf0f1aa refactoring
  • 0cebf71 add a new button to telegram bot >> Sorted Traffic Usage Report
  • cddcad2 - refactoring
  • fdef9fb add ip limit conifg on new client adding time
  • 8aa6edb update translation files for ip limit button
  • 33252b3 format document
  • 00dfdce Merge branch 'main' into bot_develop

📊 Changes

15 files changed (+342 additions, -31 deletions)

View changed files

📝 web/service/inbound.go (+35 -0)
📝 web/service/tgbot.go (+198 -3)
📝 web/translation/translate.ar_EG.toml (+10 -2)
📝 web/translation/translate.en_US.toml (+9 -2)
📝 web/translation/translate.es_ES.toml (+8 -3)
📝 web/translation/translate.fa_IR.toml (+9 -2)
📝 web/translation/translate.id_ID.toml (+8 -3)
📝 web/translation/translate.ja_JP.toml (+9 -2)
📝 web/translation/translate.pt_BR.toml (+8 -2)
📝 web/translation/translate.ru_RU.toml (+8 -2)
📝 web/translation/translate.tr_TR.toml (+8 -2)
📝 web/translation/translate.uk_UA.toml (+8 -2)
📝 web/translation/translate.vi_VN.toml (+8 -2)
📝 web/translation/translate.zh_CN.toml (+8 -2)
📝 web/translation/translate.zh_TW.toml (+8 -2)

📄 Description

🆕 New Features Added to Admin Control Panel

This update introduces three new features to the Telegram bot's Admin Control Panel:


1. 🔁 Reset All Traffics

Usage:

  • Admin opens the bot's control panel.
  • Taps on "Reset All Traffic".
  • Confirms the action via a confirmation prompt.
  • ✅ All users' traffic data is reset.
  • 📩 A success message is displayed confirming the reset.

2. 📊 Sorted Traffic Usage Report

Usage:

  • Admin opens the bot's control panel.
  • Taps on "Sorted Traffic Usage Report".
  • 📃 A report is generated showing each client's traffic usage.
  • 📌 Clients are listed in descending order by traffic consumption.

3. 🔐 IP Limit on Adding Client

Usage:

  • Admin selects "Add Client" from the control panel.
  • During the process, the admin can optionally set an IP limit.
  • 🌐 This restricts the number of IPs that can be used by the client.
  • 🛠️ If no limit is set, the default (unlimited or system-defined) behavior is applied.

🔄 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/2965 **Author:** [@nistootsin](https://github.com/nistootsin) **Created:** 5/2/2025 **Status:** ✅ Merged **Merged:** 5/6/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `bot_develop` --- ### 📝 Commits (9) - [`e297c50`](https://github.com/MHSanaei/3x-ui/commit/e297c504bea3954d19cc8270e63c397c9f2a408a) Add a new button to but : Reset All Clients - [`7e41bb2`](https://github.com/MHSanaei/3x-ui/commit/7e41bb2e816efa83ca1317928ec479819fd5d25a) handel translation for `Reset All Clients` button - [`bf0f1aa`](https://github.com/MHSanaei/3x-ui/commit/bf0f1aabc931e0f3042599e79f90951c70f84bf4) refactoring - [`0cebf71`](https://github.com/MHSanaei/3x-ui/commit/0cebf714daf827965bc50fb0b767e57e5a5a6cef) add a new button to telegram bot >> `Sorted Traffic Usage Report` - [`cddcad2`](https://github.com/MHSanaei/3x-ui/commit/cddcad2c4f395cf079be034b17db8dba799056f5) - refactoring - [`fdef9fb`](https://github.com/MHSanaei/3x-ui/commit/fdef9fb4a51d0f2f2194c182942455564db06e94) add ip limit conifg on new client adding time - [`8aa6edb`](https://github.com/MHSanaei/3x-ui/commit/8aa6edbf9404a22f482912492e987dab0bd0f7ca) update translation files for ip limit button - [`33252b3`](https://github.com/MHSanaei/3x-ui/commit/33252b3be63e304c07b6aded95c565518fb205e4) format document - [`00dfdce`](https://github.com/MHSanaei/3x-ui/commit/00dfdce79de84b3d18a0225a3bbc4be78de0002d) Merge branch 'main' into bot_develop ### 📊 Changes **15 files changed** (+342 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `web/service/inbound.go` (+35 -0) 📝 `web/service/tgbot.go` (+198 -3) 📝 `web/translation/translate.ar_EG.toml` (+10 -2) 📝 `web/translation/translate.en_US.toml` (+9 -2) 📝 `web/translation/translate.es_ES.toml` (+8 -3) 📝 `web/translation/translate.fa_IR.toml` (+9 -2) 📝 `web/translation/translate.id_ID.toml` (+8 -3) 📝 `web/translation/translate.ja_JP.toml` (+9 -2) 📝 `web/translation/translate.pt_BR.toml` (+8 -2) 📝 `web/translation/translate.ru_RU.toml` (+8 -2) 📝 `web/translation/translate.tr_TR.toml` (+8 -2) 📝 `web/translation/translate.uk_UA.toml` (+8 -2) 📝 `web/translation/translate.vi_VN.toml` (+8 -2) 📝 `web/translation/translate.zh_CN.toml` (+8 -2) 📝 `web/translation/translate.zh_TW.toml` (+8 -2) </details> ### 📄 Description ## 🆕 New Features Added to Admin Control Panel This update introduces **three** new features to the Telegram bot's **Admin Control Panel**: --- ### 1. 🔁 `Reset All Traffics` **Usage:** - Admin opens the bot's control panel. - Taps on **"Reset All Traffic"**. - Confirms the action via a confirmation prompt. - ✅ All users' traffic data is reset. - 📩 A success message is displayed confirming the reset. --- ### 2. 📊 `Sorted Traffic Usage Report` **Usage:** - Admin opens the bot's control panel. - Taps on **"Sorted Traffic Usage Report"**. - 📃 A report is generated showing each client's traffic usage. - 📌 Clients are listed in **descending order** by traffic consumption. --- ### 3. 🔐 `IP Limit on Adding Client` **Usage:** - Admin selects **"Add Client"** from the control panel. - During the process, the admin can optionally set an **IP limit**. - 🌐 This restricts the number of IPs that can be used by the client. - 🛠️ If no limit is set, the default (unlimited or system-defined) behavior is applied. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:46: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#5311
No description provided.