diff --git a/commands/download/download.go b/commands/download/download.go index 1ef784f..42d122d 100644 --- a/commands/download/download.go +++ b/commands/download/download.go @@ -182,7 +182,7 @@ func serveMedia(update tgbotapi.Update, bot *tgbotapi.BotAPI, randomNoise string 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)