Как отправить группу разных медиа telebot

Столкнулся с проблемой при написании телеграмм бота. Во время вызова метода send_media_group и передачи ему в качестве аргументов изображение и документ, получаю ошибку, которую не могу исправить. Пример кода:

    img = open(str(pathlib.Path.cwd()) + "\\resources\\images\\" +
               currentTest.questions[indexQuestion].imagePath, 'rb')
    doc = open(str(pathlib.Path.cwd()) + "\\resources\\additionalFiles\\" +
               currentTest.questions[indexQuestion].filePath, 'rb')
    media = [telebot.types.InputMediaPhoto(img), telebot.types.InputMediaDocument(doc)]
    msg = bot.send_media_group(message.chat.id, media)

Ошибка:

2022-11-25 17:29:36,167 (__init__.py:986 MainThread) ERROR - TeleBot: "Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: document can't be mixed with other media types"
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: document can't be mixed with other media types

Ответы (0 шт):