我试图使用Twilio转发短信和彩信到多个电话号码使用Twilio资源。我跟踪在线文档,很容易收到短信转发。但是我没有找到任何关于转发MMS消息的文档。
使用Twilio资源转发MMS消息的适当方法是什么?这将是从美国的电话号码。
I took a stab at it using a function and I can get the media URL to be forwarded but it then requires the receiver to log into Twilio to view the image.
`exports.handler = function(context, event, callback) {
let twiml = new Twilio.twiml.MessagingResponse();
twiml.message(`${event.From}: ${event.MediaUrl0}: ${event.Body}`, {
to: '+19999999999'
});
callback(null, twiml);
};`
I can see I will also have a problem when more than 1 image is forwarded in the message and have to obtain the message image count.发布于 2022-11-22 05:18:38
我不太清楚为什么接收器要登录到Twilio来查看图像。但是要回答第二个问题,如果转发了一个以上的图像,您必须访问它们,以便MediaURL参数的结构为MediaUrl0、MediaUrl1、MediaUrl2等。MediaUrl0是MMS中的第一个映像,MediaUrl1是第二个。而且每个MMS最多可以有10幅图像。来源
https://stackoverflow.com/questions/74501065
复制相似问题