This commit is contained in:
shoopea 2019-05-10 19:05:25 +08:00
parent 7bfa026679
commit 805feca791

3
bot.go
View File

@ -3,6 +3,7 @@ package main
import (
"fmt"
tb "gopkg.in/tucnak/telebot.v2"
"regexp"
"time"
)
@ -88,7 +89,7 @@ func botMsgRescan(m *tb.Message) (string, error) {
if r.MatchString(m.Payload) {
return "Rescaning msg #" + m.Payload, nil
}
r := regexp.MustCompile("^all$")
r = regexp.MustCompile("^all$")
if r.MatchString(m.Payload) {
return "Rescaning all msg", nil
}