reportar errores subiendo a telegram

This commit is contained in:
Cat /dev/Nulo 2023-05-09 20:40:43 -03:00
parent e032af2388
commit 2e61e51be9

View file

@ -61,7 +61,10 @@ func (config Config) handleMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update)
res := tgbotapi.NewVideo(update.Message.Chat.ID, tgbotapi.FileURL(uploadable.Url))
res.ReplyToMessageID = update.Message.MessageID
res.Caption = uploadable.Caption
bot.Send(res)
_, err := bot.Send(res)
if err != nil {
log.Println("Error subiendo", url.String(), err)
}
}
if explicit && érror == common.NotValid {