update msg len for parsing rules
This commit is contained in:
parent
c491abb519
commit
be6ab30929
10
bot.go
10
bot.go
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user