mirror of
https://github.com/alireza0/x-ui.git
synced 2026-10-22 03:32:07 +00:00
[tgbot] online/offline icon for reports
This commit is contained in:
parent
04b52ae637
commit
052ceb5a2d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue