Skip to content

Commit 5e61ed0

Browse files
authored
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.
1 parent 0a3a1c8 commit 5e61ed0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bot_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,8 @@ func TestSendWithMediaGroup(t *testing.T) {
549549
bot, _ := getBot(t)
550550

551551
cfg := tgbotapi.NewMediaGroup(ChatID, []interface{}{
552-
tgbotapi.NewInputMediaPhoto("https://i.imgur.com/unQLJIb.jpg"),
553-
tgbotapi.NewInputMediaPhoto("https://i.imgur.com/J5qweNZ.jpg"),
554-
tgbotapi.NewInputMediaVideo("https://i.imgur.com/F6RmI24.mp4"),
552+
tgbotapi.NewInputMediaPhoto("https://github.com/go-telegram-bot-api/telegram-bot-api/raw/0a3a1c8716c4cd8d26a262af9f12dcbab7f3f28c/tests/image.jpg"),
553+
tgbotapi.NewInputMediaVideo("https://github.com/go-telegram-bot-api/telegram-bot-api/raw/0a3a1c8716c4cd8d26a262af9f12dcbab7f3f28c/tests/video.mp4"),
555554
})
556555
_, err := bot.Send(cfg)
557556
if err != nil {

0 commit comments

Comments
 (0)