diff --git a/bot.go b/bot.go index 52de799..02acf4b 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 == i { + if v.ID == int64(i) { c := TGCommand{ Type: commandReplyMsg, Text: fmt.Sprintf("%s\n", v.rule),