【问题标题】:Twilio SMS Messaging 2-wayTwilio SMS 消息传递 2 路
【发布时间】:2019-05-19 05:23:04
【问题描述】:

我目前为短信营销设置了 twilio。我目前有一个问题,我无法用相同的号码回复用户。

这就是我现在的设置方式:

  1. 通过 twilio 发送短信
  2. 如果用户回复了一个 webhook 转发到我的个人号码
  3. 我必须使用我的个人号码回复用户 4. 用户对我为什么不向他们发送 twilio 号码感到困惑。

这就是我想要的设置方式:

  1. 通过 twilio 发送短信。
  2. 用户回复和一个挂钩或号码发送到我的个人号码。
  3. 我用我的个人号码回复该号码。
  4. Twilio 接受我的短信并将我的个人号码更改为最初向他们发送消息的 twilio 号码。

我该怎么做?

【问题讨论】:

    标签: sms twilio


    【解决方案1】:

    Twilio 布道者在这里。

    您可以使用 Twilio Studio 流到 forward the incoming SMS message from your own phone number to a Twilio phone number,然后将该流连接到 sends that incoming message from your number to the user from the Twilio number 的 Twilio 函数。 (向下滚动到提到 Twilio 函数的部分。)

    Twilio 函数代码如下所示:

    exports.handler = function(context, event, callback) {
      let twiml = new Twilio.twiml.MessagingResponse();
      twiml.message(`${event.From}: ${event.Body}`, {
        to: 'user-number'
      });
      callback(null, twiml);
    };
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多