From b52a9399c92a1a24fc855d079b382aab6ec7884d Mon Sep 17 00:00:00 2001 From: Syfaro Date: Thu, 5 Nov 2020 13:58:19 -0500 Subject: [PATCH] Fix Imgur issue. --- bot_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bot_test.go b/bot_test.go index 3229a8e..b490d8d 100644 --- a/bot_test.go +++ b/bot_test.go @@ -526,9 +526,8 @@ func TestSendWithMediaGroup(t *testing.T) { bot, _ := getBot(t) cfg := NewMediaGroup(ChatID, []interface{}{ - NewInputMediaPhoto("https://i.imgur.com/unQLJIb.jpg"), - NewInputMediaPhoto("https://i.imgur.com/J5qweNZ.jpg"), - NewInputMediaVideo("https://i.imgur.com/F6RmI24.mp4"), + NewInputMediaPhoto("https://github.com/go-telegram-bot-api/telegram-bot-api/raw/0a3a1c8716c4cd8d26a262af9f12dcbab7f3f28c/tests/image.jpg"), + NewInputMediaVideo("https://github.com/go-telegram-bot-api/telegram-bot-api/raw/0a3a1c8716c4cd8d26a262af9f12dcbab7f3f28c/tests/video.mp4"), }) messages, err := bot.SendMediaGroup(cfg) @@ -540,7 +539,7 @@ func TestSendWithMediaGroup(t *testing.T) { t.Error() } - if len(messages) != 3 { + if len(messages) != 2 { t.Error() } }