From 5e61ed0493dec527a133234a57bda1b4d7d6e7f1 Mon Sep 17 00:00:00 2001 From: TJ Horner Date: Mon, 19 Oct 2020 17:00:31 -0400 Subject: [PATCH] Temporarily fix MediaGroup test (Imgur -> GitHub) Telegram decided that it's no longer friends with Imgur, so we will need to use the direct GitHub asset links for now. Probably will want to eventually swap this over to uploading the file since we don't want to accidentally DDOS GitHub. --- bot_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bot_test.go b/bot_test.go index 1118a08..619b4e3 100644 --- a/bot_test.go +++ b/bot_test.go @@ -549,9 +549,8 @@ func TestSendWithMediaGroup(t *testing.T) { bot, _ := getBot(t) cfg := tgbotapi.NewMediaGroup(ChatID, []interface{}{ - tgbotapi.NewInputMediaPhoto("https://i.imgur.com/unQLJIb.jpg"), - tgbotapi.NewInputMediaPhoto("https://i.imgur.com/J5qweNZ.jpg"), - tgbotapi.NewInputMediaVideo("https://i.imgur.com/F6RmI24.mp4"), + tgbotapi.NewInputMediaPhoto("https://github.com/go-telegram-bot-api/telegram-bot-api/raw/0a3a1c8716c4cd8d26a262af9f12dcbab7f3f28c/tests/image.jpg"), + tgbotapi.NewInputMediaVideo("https://github.com/go-telegram-bot-api/telegram-bot-api/raw/0a3a1c8716c4cd8d26a262af9f12dcbab7f3f28c/tests/video.mp4"), }) _, err := bot.Send(cfg) if err != nil {