This commit is contained in:
shoopea 2019-05-25 22:37:22 +08:00
parent 546f9bcdfe
commit 9bb6c314ec

2
bot.go
View File

@ -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),