diff --git a/bot.go b/bot.go index 66c2e77..fe892e2 100644 --- a/bot.go +++ b/bot.go @@ -188,7 +188,7 @@ func botPasswd(m *tb.Message) { bot.SendChat(m.Chat.ID, "User not registered.") return } - r := regexp.MustCompile("^\\/register( )+(?P[.^\\ ]+)$") + r := regexp.MustCompile("^\\/passwd( )+(?P[^ ]+)$") if r.MatchString(m.Text) { // we have a parameter passwd := r.ReplaceAllString(m.Text, "${Passwd}")