botframework - 使用 sourceEvent 在 bot 框架模拟器中显示按钮
问题描述
我不想使用builder.Prompts.choice
,因为我想允许用户键入答案,而不仅仅是单击按钮。所以我使用 sourceEvent,与 facebook messenger 配合得很好,但我知道我没有能力在模拟器中测试我的机器人,因为按钮没有出现。
replyMessage.sourceEvent({
facebook: {
quick_replies: [
{
"content_type": "text",
"title": "Money Management",
"payload": "Money Management"
},
{
"content_type": "text",
"title": "Retirement Plans",
"payload": "Retirement Plans"
}
]
},
});
如何在模拟器中显示带有 sourceEvent 的按钮?
解决方案
推荐阅读
- c - 从文件读取的意外输出
- java - IntelliJ 上的 JavaFX 安装
- reactjs - 使用 useLazyQuery 挂钩调用查询时如何重新获取查询?
- kotlin - 如何将表添加到 from 子句?
- arrays - 如何在 Xamarin.Forms C# 代码背后创建堆叠的“VisualElements”数组?
- vue-router - Vue cli路由和获取文件的问题
- python - 命名数据框时如何添加字符串作为前缀
- c++ - ADL 名称查找问题,正在使用 std::swap;与函数重载或内部范围函数隐藏外部范围函数相关的交换(a,b)?
- java - 如何使用 Quarkus 在 Kafka 的同一主题中设置多个消费者
- typescript - 无法识别扩展运算符的重载方法