[英]Facebook Messenger not sending messages in the right order
我正在使用Watson Conversation(用于ai)和Node.js作为后端的聊天机器人,但是我无法按正确的顺序发送消息。
我发现有些人有同样的概率。 在Facebook Messenger bot上未按顺序发送消息,并在https://developers.facebook.com/bugs/565416400306038上发送消息,但我不知道此问题是否已解决..
我已经尝试过对promise和递归进行排队,但是我仍在进行随机排序。 有什么建议么 ??
查看如何使用发送消息API设置app.js会很有用。
我有一个类似的问题,为此我创建了一个名为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
*
*/
支持沃森会话,并且包括一些FB动作可以在这里找到一个FB机器人试剂盒的实例僵尸主控机
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.