botframework - 在 facebook 中单击 GetStarted 按钮 2 分钟后如何发送主动消息
问题描述
在 facebook 中单击 GetStarted 按钮 2 分钟后如何发送主动消息
async function getstartedinterval(dialogContext)
{
timeoutobj= setTimeout(function (dialogContext) {
console.log('--- inside setTimeout----',dialogContext);// displaying as undefined
notificationMsgGetStarted(dialogContext);
},constant.timeinterval);
}
我尝试过使用 SetTimeOut,但在此函数中无法访问 DialogContext。请建议。
解决方案
推荐阅读
- java - 是否可以删除两个单独的文本字段中的文本,具体取决于使用一个 MouseListener 单击哪个文本字段?
- java - 在本机反应中显示来自本机模块的png图像
- json - 将有效的 CURL put 命令转换为 Python
- java - 如何使用java编写drop课程方法?
- css - 在 React 和 Material-UI 中,如何让我的 Grid 项目占用 100% 的可用水平空间,而不会换行到下一行?
- excel - 电子表格 | OR-Function 中的优先级队列/组合 ISNA() 和 Cell=0
- node.js - 如何从另一个承诺中访问结果?
- android - xamarin android将图像插入在线数据库并以图像视图显示它来自相同的数据库但不同的设备
- c# - C# System.Data.SqlClient.SqlException 无法将值 NULL 插入列 ERROR FOREIGN KEY
- android - 循环播放多个视频