首页 > 解决方案 > 在 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。请建议。

标签: botframeworkazure-bot-service

解决方案


推荐阅读