tset
This commit is contained in:
parent
6d93169aee
commit
7bfa026679
10
bot.go
10
bot.go
@ -84,7 +84,13 @@ func botMsgRescan(m *tb.Message) (string, error) {
|
||||
fmt.Println("botRescanMsg : !m.Private()")
|
||||
return ``, nil
|
||||
}
|
||||
fmt.Println("botRescanMsg payload :", m.Payload) // <PAYLOAD>
|
||||
PrintText(m)
|
||||
r := regexp.MustCompile("^[0-9]+$")
|
||||
if r.MatchString(m.Payload) {
|
||||
return "Rescaning msg #" + m.Payload, nil
|
||||
}
|
||||
r := regexp.MustCompile("^all$")
|
||||
if r.MatchString(m.Payload) {
|
||||
return "Rescaning all msg", nil
|
||||
}
|
||||
return `rescaning`, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user