Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMasoud Hidden <masoud.hidden.user@gmail.com>2023-05-05 19:37:47 +0300
committerMasoud Hidden <masoud.hidden.user@gmail.com>2023-05-05 19:37:47 +0300
commit8d11f83ac7ea837104a112fa99ee0ed99c3bf4c4 (patch)
tree195dae1bcba38579cf08435b196b8a4e9b6be7bb /web
parentd349bffcd6ba547ed9e4cdf5b199c5100a99437f (diff)
Fix get client ips
Diffstat (limited to 'web')
-rw-r--r--web/service/tgbot.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go
index 0e5c4abb..090f282c 100644
--- a/web/service/tgbot.go
+++ b/web/service/tgbot.go
@@ -293,7 +293,7 @@ func (t *Tgbot) asnwerCallback(callbackQuery *tgbotapi.CallbackQuery, isAdmin bo
t.sendCallbackAnswerTgBot(callbackQuery.ID, "ā— Error in Operation.")
}
case "ip_log":
- t.sendCallbackAnswerTgBot(callbackQuery.ID, "āœ… %s : Get IP Log.")
+ t.sendCallbackAnswerTgBot(callbackQuery.ID, fmt.Sprintf("āœ… %s : Get IP Log.", email))
t.searchClientIps(callbackQuery.From.ID, email)
case "toggle_enable":
enabled, err := t.inboundService.ToggleClientEnableByEmail(email)
@@ -583,7 +583,7 @@ func (t *Tgbot) searchClientIps(chatId int64, email string, messageID ...int) {
if err != nil || len(ips) == 0 {
ips = "No IP Record"
}
- output := fmt.Sprintf("šŸ“§ Email: %s\r\nšŸ”¢ IPs: \r\n\r\n%s\r\n", email, ips)
+ output := fmt.Sprintf("šŸ“§ Email: %s\r\nšŸ”¢ IPs: \r\n%s\r\n", email, ips)
var inlineKeyboard = tgbotapi.NewInlineKeyboardMarkup(
tgbotapi.NewInlineKeyboardRow(
tgbotapi.NewInlineKeyboardButtonData("šŸ”„ Refresh", "ips_refresh "+email),