diff options
| author | Masoud Hidden <masoud.hidden.user@gmail.com> | 2023-05-05 19:37:47 +0300 |
|---|---|---|
| committer | Masoud Hidden <masoud.hidden.user@gmail.com> | 2023-05-05 19:37:47 +0300 |
| commit | 8d11f83ac7ea837104a112fa99ee0ed99c3bf4c4 (patch) | |
| tree | 195dae1bcba38579cf08435b196b8a4e9b6be7bb /web | |
| parent | d349bffcd6ba547ed9e4cdf5b199c5100a99437f (diff) | |
Fix get client ips
Diffstat (limited to 'web')
| -rw-r--r-- | web/service/tgbot.go | 4 |
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), |
