Permitir bajar varios videos en un mensaje
This commit is contained in:
parent
eda0474160
commit
52142fc57c
1 changed files with 3 additions and 3 deletions
6
main.go
6
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)
|
||||
|
||||
|
|
Reference in a new issue