mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 12:32:09 +00:00
Fix get client ips
This commit is contained in:
parent
d349bffcd6
commit
8d11f83ac7
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue