test
This commit is contained in:
parent
7bfa026679
commit
805feca791
3
bot.go
3
bot.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user