首页 文章

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

提问于
浏览
0

使用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 builder模拟器中 . 模拟器中是否支持位置对话框?

1 回答

  • 1

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

    bot.library(locationDialog.createLibrary('API_KEY');
    

相关问题