[tgbot] online/offline icon for reports

This commit is contained in:
Alireza Ahmadi
2023-11-13 23:10:44 +01:00
parent 04b52ae637
commit 052ceb5a2d

View File

@@ -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
}
}