diff --git a/bot.go b/bot.go index d3f5354..348611c 100644 --- a/bot.go +++ b/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{