mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-07 10:46:19 +00:00
[tgbot] Fix messages split
This commit is contained in:
parent
84fc262b80
commit
1b073685e7
7 changed files with 37 additions and 37 deletions
|
@ -820,7 +820,7 @@ func (t *Tgbot) SendMsgToTgbot(chatId int64, msg string, replyMarkup ...telego.R
|
|||
allMessages[lastIndex] += "\r\n\r\n" + message
|
||||
}
|
||||
}
|
||||
if strings.TrimSpace(allMessages[lastIndex]) == "" {
|
||||
if strings.TrimSpace(allMessages[len(allMessages)-1]) == "" {
|
||||
allMessages = allMessages[:len(allMessages)-1]
|
||||
}
|
||||
} else {
|
||||
|
@ -1430,7 +1430,7 @@ func (t *Tgbot) notifyExhausted() {
|
|||
if len(exhaustedClients) > 0 {
|
||||
output += t.I18nBot("tgbot.messages.disabled", "Disabled=="+strconv.Itoa(len(disabledClients)))
|
||||
if len(disabledClients) > 0 {
|
||||
output += t.I18nBot("tgbot.clients") + ":"
|
||||
output += t.I18nBot("tgbot.clients") + ":\r\n"
|
||||
for _, traffic := range disabledClients {
|
||||
output += " " + traffic.Email
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue