找不到机器人框架位置选择器

时间:2017-03-02 17:50:19

标签: node.js emulation botframework

使用Node,我安装了botbuilder-location包和以下代码:

var locationDialog = require('botbuilder-location');
var options = {
    prompt: "Where are you ?",
    useNativeControl: true,
    reverseGeocode: true
  };
locationDialog.getLocation(session, options);

我收到了错误:

  

错误:找不到对话框[botbuilder-location:locationPickerPrompt]。

在bot构建器模拟器中。模拟器中是否支持位置对话框?

1 个答案:

答案 0 :(得分:1)

好的,我只是错过了这一行:

bot.library(locationDialog.createLibrary('API_KEY');
相关问题