Node.js Facebook Messenger未按正确顺序发送消息

Node.js Facebook Messenger未按正确顺序发送消息,node.js,facebook,watson-conversation,facebook-messenger-bot,Node.js,Facebook,Watson Conversation,Facebook Messenger Bot,我正在使用Watson对话(用于a.I.)和Node.js作为后端的聊天机器人,但我在按正确顺序发送消息时遇到了问题 我发现有些人也有同样的问题。但是我不知道这个问题是否解决了 我尝试过排队承诺和递归,但仍然得到随机排序。有什么建议吗 看看您的app.js是如何使用send message API设置的,这将非常有用 我有一个类似的问题,为此我创建了一个名为SendCascade的函数 /** * sendCascadeTo() allows developers to send a ca

我正在使用Watson对话(用于a.I.)和Node.js作为后端的聊天机器人,但我在按正确顺序发送消息时遇到了问题

我发现有些人也有同样的问题。但是我不知道这个问题是否解决了


我尝试过排队承诺和递归,但仍然得到随机排序。有什么建议吗

看看您的app.js是如何使用send message API设置的,这将非常有用

我有一个类似的问题,为此我创建了一个名为SendCascade的函数

/**
   * sendCascadeTo() allows developers to send a cascade of messages
   * in a sequence. All types of messages can be sent (including raw messages).
   *
   * @param {Array} messageArray of messages in a format as such: [{text: 'something'}, {message: someMessengerValidMessage}]
   * @param {string} recipientId just the id of the recipient to send the messages to. If using full messages, the id will not be used
   *
   * @return {Promise} promise
   * The returned value an in-place array of bodies received from the client platform
   * The objects of the array are of the same format as for standard messages
   *
   */

可在此处找到支持Watson对话并包含一些FB操作的FB机器人套件示例

谢谢!我肯定会看一看:)我的代码目前无法读取://