From 2162ea52c613d2f7b03da8d9d4adbd98009ef890 Mon Sep 17 00:00:00 2001 From: Peyman <118217228+Ptechgithub@users.noreply.github.com> Date: Tue, 9 May 2023 00:28:57 +0330 Subject: [PATCH] Update tgbot.go --- web/service/tgbot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/service/tgbot.go b/web/service/tgbot.go index 7944e400..0da8dc4b 100644 --- a/web/service/tgbot.go +++ b/web/service/tgbot.go @@ -330,7 +330,7 @@ func (t *Tgbot) asnwerCallback(callbackQuery *tgbotapi.CallbackQuery, isAdmin bo case "get_backup": t.sendBackup(callbackQuery.From.ID) case "client_traffic": - t.getClientUsage(callbackQuery.From.ID, callbackQuery.From.UserName) + t.getClientUsage(callbackQuery.From.ID, callbackQuery.From.UserName, strconv.FormatInt(callbackQuery.From.ID, 10)) case "client_commands": t.SendMsgToTgbot(callbackQuery.From.ID, "To search for statistics, just use folowing command:\r\n \r\n/usage [UID|Password]\r\n \r\nUse UID for vmess/vless and Password for Trojan.") case "commands":