I'm trying to store media_group_id value in a database for later reference to the photos. But I'm unable to send it as a MediaGroup using using types.send_media_group method. What's the mechanism of sending a media group of photos? I tried:
file=types.InputMediaPhoto('12338991854684052')
bot.send_media_group(message.from_user.id,[file,])
P.S: I'm using pyTelegramBotAPI library