node-telegram-bot-api
node-telegram-bot-api copied to clipboard
sendMediaGroup - InputMediaDocument
InputMediaDocument in sendMediaGroup is unavailable, please fix that.
https://core.telegram.org/bots/api#inputmediadocument
You are talking about the typescript types maybe? Because send media documents is possible with sendMediaGroup in this library
ts - yes... has type errors, btw this working, but has not full ts support...
bot.sendMediaGroup(
subscription.chatId, files.map((file) => ({
type: "document" as any,
media: file,
})),
{
disable_notification: true,
reply_to_message_id: message.message_id,
},
);