Is it still possible to use streams instead of the file path when sending images/videos/etc?
I get the images off another server, which is why I need it :/
bot.sendPhoto({
chat_id: USER_ID,
caption: 'Telegram Logo',
files: {
photo: {
filename: './examples/logo.png',
stream: fs.createReadStream('./examples/logo.png')
}
}
}, function (err, msg) {
console.log(err);
console.log(msg);
});