Open ishan-marikar opened 8 years ago
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); });
Seems like it.
It would be nice to let node-telegram-bot accept vinyl files instead of custom solutions. Then, one could reuse the existing vinyl ecosystem.
node-telegram-bot
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 :/