From 052ceb5a2d23e5e59749ebad345acccd61bbec06 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 13 Nov 2023 23:10:44 +0100 Subject: [PATCH] [tgbot] online/offline icon for reports --- web/service/tgbot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/service/tgbot.go b/web/service/tgbot.go index c7f03cbe..9ce79701 100644 --- a/web/service/tgbot.go +++ b/web/service/tgbot.go @@ -466,11 +466,11 @@ func (t *Tgbot) clientInfoMsg(traffic *xray.ClientTraffic) string { active = t.I18nBot("tgbot.messages.no") } - status := t.I18nBot("offline") + status := "🔴 " + t.I18nBot("offline") if p.IsRunning() { for _, online := range p.GetOnlineClients() { if online == traffic.Email { - status = t.I18nBot("online") + status = "🟢 " + t.I18nBot("online") break } }