我试图在Facebook bot实现中询问后续问题“快速回复”。你可以看到完整的app.js(示例文件在这里):https://github.com/fbsamples/messenger-platform-samples/blob/master/node/app.jsJavascript正在等待函数响应完成
当1)用户输入命令 - 例如“你好”,在我向用户发送相关回复后 - 2)我想问一个跟进问题。 “你想知道今天的天气吗?”
case 'hello':
sendHelloGenericReponse(senderID);
sendWeatherQuickReplyQuestion(senderID); //only execute this after above is complete
break;
I.e.我想在做2之前等待1完成。但是,由于某些原因,天气问题总是首先显示给用户。任何帮助,将不胜感激
功能的使用您在'sendHelloGenericReponse'和'sendWeatherQuickReplyQuestion'方法的承诺? –