This commit is contained in:
Watn3y 2023-05-01 04:17:32 +02:00
parent 26cddc7ae7
commit 591164c586

View file

@ -182,7 +182,7 @@ func serveMedia(update tgbotapi.Update, bot *tgbotapi.BotAPI, randomNoise string
imageTypes := []string{".jpg", ".jpeg", ".png"} imageTypes := []string{".jpg", ".jpeg", ".png"}
shortURL := shortURL(url.PathEscape(config.BotConfig.Download.Prefix + "/" + randomNoise + "/" + (file))) shortURL := shortURL(url.PathEscape(config.BotConfig.Download.Prefix + "/" + randomNoise + "/" + url.PathEscape(file)))
fsPathStat, _ := os.Stat(fsPath) fsPathStat, _ := os.Stat(fsPath)