node-telegram-bot-api icon indicating copy to clipboard operation
node-telegram-bot-api copied to clipboard

sendMediaGroup - InputMediaDocument

Open mat-twg opened this issue 1 year ago • 3 comments

InputMediaDocument in sendMediaGroup is unavailable, please fix that.

https://core.telegram.org/bots/api#inputmediadocument

mat-twg avatar Feb 25 '24 18:02 mat-twg

You are talking about the typescript types maybe? Because send media documents is possible with sendMediaGroup in this library

danielperez9430 avatar Mar 01 '24 09:03 danielperez9430

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,
    },
);

mat-twg avatar Mar 07 '24 01:03 mat-twg