I am configuring a Twilio channel for BOt. I want to send MMS using this Bot to user. But Image which is attached in Bot framework, is replaced with a URL . Here is How I'm sending the MMS.
fs.readFile(attachmentUrl, function (err, data) {
var base64 = Buffer.from(data).toString('base64');
var msg = new builder.Message().address(address1)
.addAttachment({
contentUrl: util.format('data:%s;base64,%s', contentType, base64),
contentType: contentType,
name: 'BotFrameworkLogo.png'
});
bot.send(msg, function (err, addresses) {
callback(err, addresses);
});
});
Expected Output should be :