From 2e61e51be96302f4a6883fe78e4d48053ca3fda4 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 9 May 2023 20:40:43 -0300 Subject: [PATCH] reportar errores subiendo a telegram --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2352e34..ec5cc2d 100644 --- a/main.go +++ b/main.go @@ -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 {