While sending documents via external link in telegram bot I am getting error of "Unhandled rejection Error: ETELEGRAM: 400 Bad Request: wrong type of the web page content". I just don't understand why this error occured? P.S I'm using node.js library called node-telegram-bot-api to send requests.
`
bot.sendMediaGroup(
config.CHANNEL_ID,
[
{
type: "photo",
media: imgUrl,
caption: movie,
parse_mode: "HTML",
},
{
type: "photo",
media: screenshots[0],
},
{
type: "photo",
media: screenshots[1],
},
{
type: "video",
media: videoArray[0].url,
},
],
{
disable_notification: true,
}
);
`
There are content types that Telegram does not accept . Like .webp .....
(by default application/octet-stream)