2

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

enter image description here

Expected Output should be :

enter image description here

Planet-Zoom
  • 1,005
  • 2
  • 9
  • 20

1 Answers1

4

I think you might be out side of the zone supported for this by twilio.

MMS messages sent internationally will be converted to SMS text messages with a URL link to the media

from here

Nicolas R
  • 13,812
  • 2
  • 28
  • 57
Shachaf.Gortler
  • 5,655
  • 14
  • 43
  • 71