diff --git a/bot.go b/bot.go index fbd8d2c..4be0e4d 100644 --- a/bot.go +++ b/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) // - 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 }