I can’t process incoming data into files to send further to the bot
The only option that worked was to save the file to disk and then get it out again
// media from channel
const buffer = await client.downloadMedia(event.message.media);
const filePath = `./downloads/${photo?.id}.jpg`;
fs.writeFile(filePath, buffer, () => {});
const file = new InputFile(filePath); // bot file type
bot.api.sendPhoto(id, file, params);
But this is not an option, I do not have access to the disk on the server, can this be done in runtime? (From buffer to a file, which bot can send)