From 9bb6c314ecc6d348a2ba0beba4c173910eb143cc Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 25 May 2019 22:37:22 +0800 Subject: [PATCH] test --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),