update msg len for parsing rules

This commit is contained in:
shoopea 2019-10-20 17:11:36 +08:00
parent c491abb519
commit be6ab30929

10
bot.go
View File

@ -553,6 +553,16 @@ func botListParsingRules(m *tb.Message) {
for _, v := range msgParsingRules {
s = fmt.Sprintf("%s[%d] %s\n", s, v.ID, v.Description)
if len(s) > 3000 {
c := TGCommand{
Type: commandReplyMsg,
Text: s,
FromMsgID64: int64(m.ID),
FromChatID64: m.Chat.ID,
}
TGCmdQueue <- c
s = nil
}
}
c := TGCommand{