This commit is contained in:
shoopea 2019-05-25 22:37:54 +08:00
parent 9bb6c314ec
commit 5863e67149

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 == int64(i) {
if int64(v.ID) == i {
c := TGCommand{
Type: commandReplyMsg,
Text: fmt.Sprintf("%s\n", v.rule),