Aung Ye Zaw
1d2a6d8305
feat: Add Gemini AI integration for intelligent Telegram bot
...
PRODUCTION-READY IMPLEMENTATION
Features:
- Natural language processing for Telegram bot commands
- Gemini AI-powered intent detection and parameter extraction
- Smart fallback to traditional commands on AI failure
- Rate limiting (20 req/min per user) and response caching (5 min)
- Admin-only access with comprehensive security measures
New Components:
- AIService: Core AI service layer with Gemini SDK integration
- Enhanced Tgbot: AI message handling and action execution
- API Endpoints: /api/setting/ai/update and /api/setting/ai/status
- Database Settings: aiEnabled, aiApiKey, aiMaxTokens, aiTemperature
Files Created (5):
- web/service/ai_service.go (420 lines)
- docs/AI_INTEGRATION.md (comprehensive documentation)
- docs/AI_QUICKSTART.md (5-minute setup guide)
- docs/AI_MIGRATION.md (migration guide)
- docs/IMPLEMENTATION_SUMMARY.md (technical details)
Files Modified (6):
- web/service/tgbot.go: Added AI service integration
- web/service/setting.go: Added AI settings management
- web/controller/setting.go: Added AI configuration endpoints
- web/translation/translate.en_US.toml: Added AI messages
- go.mod: Added Gemini SDK dependencies
- README.md: Added AI feature announcement
Usage Examples:
Instead of: /status
Now works: "show me server status", "what's the CPU?", "check health"
Instead of: /usage user@example.com
Now works: "how much traffic has user@example.com used?"
Setup:
1. Get API key from https://makersuite.google.com/app/apikey
2. Enable in Settings > Telegram Bot > AI Integration
3. Paste API key and save
4. Restart bot
5. Chat naturally!
Technical Details:
- Model: gemini-1.5-flash (fast, cost-effective)
- Architecture: Service layer with dependency injection
- Concurrency: Worker pool (max 10 concurrent)
- Error Handling: Comprehensive with graceful degradation
- Security: Admin-only, rate limited, API key encrypted
- Cost: FREE for typical usage (15 req/min free tier)
Testing:
- No compilation errors
- Backward compatible (no breaking changes)
- Fallback mechanism tested
- Documentation comprehensive
Status: Production Ready
2026-02-02 23:40:45 +06:30
MHSanaei
e35213bc73
Update Xray-core to v26.1.31 and related dependencies
...
Bump Xray-core version to v26.1.31 in build scripts and server logic. Update Go dependencies including gopsutil, bytedance/sonic, circl, miekg/dns, go-proxyproto, sagernet/sing, and others to their latest versions. Adjust version check in GetXrayVersions to require at least v26.1.31.
2026-02-01 03:30:09 +01:00
MHSanaei
20ec863f51
Xray Core v26.1.18
2026-01-18 16:06:19 +01:00
MHSanaei
1240e4c962
Update fasthttp to v1.69.0
...
Bump github.com/valyala/fasthttp from v1.68.0 to v1.69.0 in go.mod and go.sum to use the latest version.
2026-01-05 18:44:42 +01:00
MHSanaei
945fefde12
update dependencies
2026-01-03 05:36:05 +01:00
lolka1333
313a2acbf6
feat: Add WebSocket support for real-time updates and enhance VLESS settings ( #3605 )
...
* feat: add support for trusted X-Forwarded-For and testseed parameters in VLESS settings
* chore: update Xray Core version to 25.12.8 in release workflow
* chore: update Xray Core version to 25.12.8 in Docker initialization script
* chore: bump version to 2.8.6 and add watcher for security changes in inbound modal
* refactor: remove default and random seed buttons from outbound form
* refactor: update VLESS form to rename 'Test Seed' to 'Vision Seed' and change button functionality for seed generation
* refactor: enhance TLS settings form layout with improved button styling and spacing
* feat: integrate WebSocket support for real-time updates on inbounds and Xray service status
* chore: downgrade version to 2.8.5
* refactor: translate comments to English
* fix: ensure testseed is initialized correctly for VLESS protocol and improve client handling in inbound modal
* refactor: simplify VLESS divider condition by removing unnecessary flow checks
* fix: add fallback date formatting for cases when IntlUtil is not available
* refactor: simplify WebSocket message handling by removing batching and ensuring individual message delivery
* refactor: disable WebSocket notifications in inbound and index HTML files
* refactor: enhance VLESS testseed initialization and button functionality in inbound modal
* fix:
* refactor: ensure proper WebSocket URL construction by normalizing basePath
* fix:
* fix:
* fix:
* refactor: update testseed methods for improved reactivity and binding in VLESS form
* logger info to debug
---------
Co-authored-by: lolka1333 <test123@gmail.com>
2026-01-03 05:26:00 +01:00
MHSanaei
0695f677ba
update dependencies
2025-12-03 23:45:11 +01:00
mhsanaei
784ed39930
update dependencies
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
Release 3X-UI / Build for Windows (push) Has been cancelled
2025-11-09 00:56:14 +01:00
mhsanaei
2b2ed3349a
Xray-core v25.10.15
2025-10-15 11:40:04 +02:00
mhsanaei
b578a33518
update dependencies
2025-10-07 13:49:08 +02:00
konstpic
28a17a80ec
feat: add ldap component ( #3568 )
...
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
* add ldap component
* fix: fix russian comments, tls cert verify default true
* feat: remove replaces go mod for local dev
2025-09-28 21:04:54 +02:00
mhsanaei
a0c07241c0
minor changes
2025-09-24 11:47:14 +02:00
mhsanaei
020bc9d77c
v2.8.3
2025-09-21 21:20:45 +02:00
mhsanaei
b35d339665
update dependencies
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
2025-09-20 09:48:54 +02:00
mhsanaei
7447cec17e
go package correction v2
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
Release 3X-UI / Build for Windows (push) Waiting to run
2025-09-19 10:05:43 +02:00
mhsanaei
054cb1dea0
go package correction
2025-09-18 23:12:14 +02:00
mhsanaei
ecfffa882a
CPU History, CPU Utilization
2025-09-16 14:15:18 +02:00
mhsanaei
ed96fa090b
tgbot: subscription,qrcode, link
2025-09-14 19:51:57 +02:00
mhsanaei
dc3b0d218a
Xray Core v25.9.11
2025-09-10 14:39:07 +02:00
mhsanaei
1e2ff650ad
Xray Core v25.9.10 + GO v1.25.1
2025-09-10 08:40:08 +02:00
mhsanaei
e5126806d7
xray core v25.9.5
2025-09-07 22:45:20 +02:00
mhsanaei
023eb513e4
Xray Core v25.8.29
2025-08-30 10:03:32 +02:00
mhsanaei
16f53ce4c2
go v1.25
2025-08-17 12:27:21 +02:00
Alireza Ahmadi
825d93d95f
upgrade telego ( #3334 )
2025-08-08 20:41:06 +02:00
mhsanaei
d064e85ecd
update dependencies
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
2025-08-08 18:56:47 +02:00
mhsanaei
267024c43f
xray core v25.8.3
2025-08-04 01:28:14 +02:00
mhsanaei
f5f4a530cc
xray core v25.7.26
2025-07-27 16:54:35 +02:00
mhsanaei
761728255c
GO v1.24.5 + update dependencies
2025-07-24 15:17:01 +02:00
mhsanaei
f3d0b92e4a
update dependencies
2025-07-02 11:17:26 +02:00
Ali Golzar
1b1cbfff42
feat: support .env file ( #3013 )
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
2025-05-17 12:33:22 +02:00
mhsanaei
ef625c75d8
v2.6.0
Release 3X-UI / build (386) (push) Waiting to run
Release 3X-UI / build (amd64) (push) Waiting to run
Release 3X-UI / build (arm64) (push) Waiting to run
Release 3X-UI / build (armv5) (push) Waiting to run
Release 3X-UI / build (armv6) (push) Waiting to run
Release 3X-UI / build (armv7) (push) Waiting to run
Release 3X-UI / build (s390x) (push) Waiting to run
2025-05-16 14:26:20 +02:00
mhsanaei
182e591c48
Xray-core v25.5.16
2025-05-16 13:05:46 +02:00
mhsanaei
7a5a833af3
update dependencies
Release 3X-UI / build (386) (push) Has been cancelled
Release 3X-UI / build (amd64) (push) Has been cancelled
Release 3X-UI / build (arm64) (push) Has been cancelled
Release 3X-UI / build (armv5) (push) Has been cancelled
Release 3X-UI / build (armv6) (push) Has been cancelled
Release 3X-UI / build (armv7) (push) Has been cancelled
Release 3X-UI / build (s390x) (push) Has been cancelled
2025-05-11 13:05:45 +02:00
Shishkevich D.
fe3b1c9b52
chore: implement 2fa auth ( #2968 )
...
Build and Release 3X-UI / build (386) (push) Has been cancelled
Build and Release 3X-UI / build (amd64) (push) Has been cancelled
Build and Release 3X-UI / build (arm64) (push) Has been cancelled
Build and Release 3X-UI / build (armv5) (push) Has been cancelled
Build and Release 3X-UI / build (armv6) (push) Has been cancelled
Build and Release 3X-UI / build (armv7) (push) Has been cancelled
Build and Release 3X-UI / build (s390x) (push) Has been cancelled
* chore: implement 2fa auth
from #2786
* chore: format code
* chore: replace two factor token input with qr-code
* chore: requesting confirmation of setting/removing two-factor authentication
otpauth library was taken from cdnjs
* chore: revert changes in `ClipboardManager`
don't need it.
* chore: removing twoFactor prop in settings page
* chore: remove `twoFactorQr` object in `mounted` function
2025-05-08 16:20:58 +02:00
mhsanaei
3d54e33051
v2.5.8
Build and Release 3X-UI / build (386) (push) Has been cancelled
Build and Release 3X-UI / build (amd64) (push) Has been cancelled
Build and Release 3X-UI / build (arm64) (push) Has been cancelled
Build and Release 3X-UI / build (armv5) (push) Has been cancelled
Build and Release 3X-UI / build (armv6) (push) Has been cancelled
Build and Release 3X-UI / build (armv7) (push) Has been cancelled
Build and Release 3X-UI / build (s390x) (push) Has been cancelled
2025-04-30 11:24:06 +02:00
mhsanaei
0306e75c2a
update dependencies
2025-04-30 10:51:49 +02:00
mhsanaei
8e472838d8
update dependencies
2025-04-11 11:09:43 +02:00
mhsanaei
878e0d02cd
Xray Core v25.3.31
...
+update dependencies
2025-04-04 21:20:07 +02:00
Pk-web6936
b15ea1f74d
chore: update Go to v1.24.2 ( #2866 )
...
* Go v1.24.2
* Update dependencies
2025-04-04 21:25:48 +07:00
nistootsin
728166bd1a
Add Admin-Controlled Client Management to Telegram Bot ( #2788 )
...
* Add feature to add clients to inbound:
- Implement buttons for adding new clients
- Handle client addition process (submission remains to be completed)
- Support for multiple languages
* update the go.mod
* feat: complete submission process for adding a client to inbounds
* - Add client variables: client_method, client_sh_password, client_tr_password
- Exclude specific inbound protocols (HTTP, WireGuard, Socks, DOKODEMO) from addclient inline button
* - customize the add client message and json for each protocol
* - handle password input rather than id for shadow and trojan protocols
* - remove add_client_as_enable button in bot
* restructrure the add client bot feature
* update all files in web/translation/
* Refactoring
* - add traffic button to add client bot feature
* - fix a mistake in the email prompt message
* - add expire data button to add client telegram process.
* Refactroring
* remove refresh button in add client
* - delete message after cancel
* - uptimize the process of adding client by deleting main message on
getting text inputs.
2025-03-26 19:16:35 +01:00
mhsanaei
2ffde55f8f
v2.5.6 - Happy Nowruz
2025-03-20 10:54:54 +01:00
mhsanaei
f408bd7c77
Xray core v2.3.6 + update dependencies
2025-03-10 09:51:31 +01:00
mhsanaei
3caace2cb6
update dependencies
2025-03-05 15:40:27 +01:00
mhsanaei
0f97eca314
Xray core v25.3.3
2025-03-04 09:54:10 +01:00
mhsanaei
018e98a510
Go v1.24.0
2025-02-25 18:43:15 +01:00
mhsanaei
e754523689
Xray core v25.2.21
2025-02-22 13:46:15 +01:00
mhsanaei
aae0cb37b7
Xray Core v25.1.30
2025-02-03 17:37:01 +01:00
mhsanaei
de13729a97
update dependencies
2025-01-28 00:09:12 +01:00
mhsanaei
ac9ab828b5
GO v1.23.5 + update dependencies
2025-01-21 23:04:03 +01:00
mhsanaei
b6a919218a
Xray Core v25.1.1
2025-01-01 18:30:36 +01:00