mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-07 10:46:19 +00:00
[tgbot] Fix
This commit is contained in:
parent
7be85c7503
commit
9b5ace0cc7
1 changed files with 14 additions and 14 deletions
|
@ -1419,24 +1419,24 @@ func (t *Tgbot) notifyExhausted() {
|
||||||
} else {
|
} else {
|
||||||
disabledClients = append(disabledClients, *traffic)
|
disabledClients = append(disabledClients, *traffic)
|
||||||
}
|
}
|
||||||
if len(exhaustedClients) > 0 {
|
}
|
||||||
output += t.I18nBot("tgbot.messages.disabled", "Disabled=="+strconv.Itoa(len(disabledClients)))
|
if len(exhaustedClients) > 0 {
|
||||||
if len(disabledClients) > 0 {
|
output += t.I18nBot("tgbot.messages.disabled", "Disabled=="+strconv.Itoa(len(disabledClients)))
|
||||||
output += t.I18nBot("tgbot.clients") + ":"
|
if len(disabledClients) > 0 {
|
||||||
for _, traffic := range disabledClients {
|
output += t.I18nBot("tgbot.clients") + ":"
|
||||||
output += " " + traffic.Email
|
for _, traffic := range disabledClients {
|
||||||
}
|
output += " " + traffic.Email
|
||||||
output += "\r\n"
|
|
||||||
}
|
}
|
||||||
output += "\r\n"
|
output += "\r\n"
|
||||||
output += t.I18nBot("tgbot.messages.depleteSoon", "Deplete=="+strconv.Itoa(len(exhaustedClients)))
|
}
|
||||||
for _, traffic := range exhaustedClients {
|
output += "\r\n"
|
||||||
output += t.clientInfoMsg(&traffic, true, false, false, true, true, false)
|
output += t.I18nBot("tgbot.messages.depleteSoon", "Deplete=="+strconv.Itoa(len(exhaustedClients)))
|
||||||
output += "\r\n"
|
for _, traffic := range exhaustedClients {
|
||||||
}
|
output += t.clientInfoMsg(&traffic, true, false, false, true, true, false)
|
||||||
t.SendMsgToTgbot(chatID, output)
|
output += "\r\n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
t.SendMsgToTgbot(chatID, output)
|
||||||
chatIDsDone = append(chatIDsDone, client.TgID)
|
chatIDsDone = append(chatIDsDone, client.TgID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue