diff --git a/bot.go b/bot.go index 02acf4b..b37689e 100644 --- a/bot.go +++ b/bot.go @@ -231,7 +231,7 @@ func botListParsingRule(m *tb.Message) { if r.MatchString(m.Payload) { i, _ := strconv.ParseInt(m.Payload, 10, 64) for _, v := range msgParsingRules { - if v.ID == int64(i) { + if int64(v.ID) == i { c := TGCommand{ Type: commandReplyMsg, Text: fmt.Sprintf("%s\n", v.rule),