Permitir bajar varios videos en un mensaje

This commit is contained in:
Cat /dev/Nulo 2022-08-27 19:38:04 -03:00
parent eda0474160
commit 52142fc57c

View file

@ -54,14 +54,14 @@ func handleMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update) {
if explicit { if explicit {
bot.Send(respondWithMany(msg, "No se pudo detectar la URL ", urlString, ".")) bot.Send(respondWithMany(msg, "No se pudo detectar la URL ", urlString, "."))
} }
return continue
} }
if url.Hostname() != "vm.tiktok.com" { if url.Hostname() != "vm.tiktok.com" {
if explicit { if explicit {
bot.Send(respondWithMany(msg, "La URL ", urlString, " no es de TikTok.")) bot.Send(respondWithMany(msg, "La URL ", urlString, " no es de TikTok."))
} }
return continue
} }
hasDownloadables = true hasDownloadables = true
@ -69,7 +69,7 @@ func handleMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update) {
lookup, err := Lookup(urlString) lookup, err := Lookup(urlString)
if err != nil { if err != nil {
bot.Send(respondWithMany(msg, "Hubo un error al descargar ", urlString, ".")) bot.Send(respondWithMany(msg, "Hubo un error al descargar ", urlString, "."))
return continue
} }
log.Println(lookup) log.Println(lookup)