From 52142fc57c57088169d64a4a27c4fc7b1ad5691b Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 27 Aug 2022 19:38:04 -0300 Subject: [PATCH] Permitir bajar varios videos en un mensaje --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index b7f0d04..4786b19 100644 --- a/main.go +++ b/main.go @@ -54,14 +54,14 @@ func handleMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update) { if explicit { bot.Send(respondWithMany(msg, "No se pudo detectar la URL ", urlString, ".")) } - return + continue } if url.Hostname() != "vm.tiktok.com" { if explicit { bot.Send(respondWithMany(msg, "La URL ", urlString, " no es de TikTok.")) } - return + continue } hasDownloadables = true @@ -69,7 +69,7 @@ func handleMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update) { lookup, err := Lookup(urlString) if err != nil { bot.Send(respondWithMany(msg, "Hubo un error al descargar ", urlString, ".")) - return + continue } log.Println(lookup)