update stats/eco/save

This commit is contained in:
shoopea
2021-12-05 16:20:12 +08:00
parent e043820273
commit 0c9ac03705
3 changed files with 13 additions and 5 deletions

2
bot.go
View File

@@ -521,7 +521,7 @@ func botSave(m *tb.Message) {
return
}
r := regexp.MustCompile("^\\/save (?P<Filename>[a-zA-Z0-9._]+)")
r := regexp.MustCompile("^\\/save (?P<Filename>[a-zA-Z0-9._\\/]+)")
if !r.MatchString(m.Text) {
bot.SendChat(m.Chat.ID, "Wrong usage.")