O status do Twilio MMS permanece sempre Enviado quando enviado usando a estrutura Bot
Estou construindo um bot para o canal Twilio (SMS). Quando envio um SMS simples e simples para um número nos EUA, ele é entregue com status no log de mensagens do twilio comoDelivered
.
Mas quando anexo qualquer imagem à mensagem para enviar MMS, a mensagem nunca é entregue e seu status no log do twilio permanecesent
sempre.
Aqui está como estou anexando mídia ao MMS.
var msg = new builder.Message(session);
msg.attachmentLayout(builder.AttachmentLayout.list)
msg.attachments([
new builder.HeroCard(session)
.title("This is Title")
.subtitle("This is sub title")
.text("This is text")
.images([builder.CardImage.create(session, 'http://www.readersdigest.ca/wp-content/uploads/2011/01/4-ways-cheer-up-depressed-cat.jpg')])
]);
session.send(msg).endDialog();
Também usei outra maneira de criar mensagens como:
var msg = new builder.Message(session)
.text("This is a title - which can be long and multiple line sometimes<br/><br/>The body of the text can be really really long sometimes with different formats with links <http://google.com|Google><br/><br/>some times with a footer with `formats`")
.addAttachment({
contentUrl: 'http://www.readersdigest.ca/wp-content/uploads/2011/01/4-ways-cheer-up-depressed-cat.jpg',
contentType: 'image/png',
name: 'BotFrameworkOverview.png'
});
As duas mensagens nunca são entregues.
Mas uma mensagem simples sem mídia é entregue com êxito
var msg = new builder.Message(session)
.text("This is a title - which can be long and multiple line sometimes<br/><br/>The body of the text can be really really long sometimes with different formats with links <http://google.com|Google><br/><br/>some times with a footer with `formats`")
Twilio Log: