From b41aef37e51f910d088769ff837492dbf6912550 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 26 Nov 2023 15:37:08 +0100 Subject: [PATCH] [tgbot] support telegram ID #633 --- README.md | 2 +- web/html/xui/client_bulk_modal.html | 18 ++++++++++++++++-- web/html/xui/form/client.html | 18 ++++++++++++++++-- web/html/xui/inbound_info_modal.html | 2 +- web/service/inbound.go | 27 ++++++++------------------- web/service/tgbot.go | 3 ++- 6 files changed, 44 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 63589a11..eedab67d 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ Reference syntax: - Login notification - CPU threshold notification - Threshold for Expiration time and Traffic to report in advance -- Support client report menu if client's telegram username added to the user's configurations +- Support client report menu if client's telegram ID or telegram UserName added to the user's configurations - Support telegram traffic report searched with UUID (VMESS/VLESS) or Password (TROJAN) - anonymously - Menu based bot - Search client by email ( only admin ) diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 0b96c738..30409e7d 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -70,7 +70,14 @@ - Subscription + Subscription + + + + + @@ -78,7 +85,14 @@ - Telegram Username + Telegram ID + + + + + diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html index f2063c27..7334ff28 100644 --- a/web/html/xui/form/client.html +++ b/web/html/xui/form/client.html @@ -44,7 +44,14 @@ - Subscription + Subscription + + + + + @@ -52,7 +59,14 @@ - Telegram Username + Telegram ID + + + + + diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index 4583dff6..081f454e 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -152,7 +152,7 @@