我尝试添加来自ms bot的选项(下拉选项)。当我尝试做API调用时,我无法在聊天(Skype)中获得选择,它显示为空的适配卡。我应该使用什么Rest API格式来实现ms机器人聊天中的选择?
请参考显示聊天的下图。

{
"type":"message",
"replyToId":"1546161996823",
"conversation":
{
"id":"29:1nx20fU3aWIiv8P6DFhvS8GI0NRa-NlQ8ofk4i9ETyc0"
},
"from":
{
"id":"28:07807967-5b86-4184-9fae-354edd99eed9",
"name":"incoxtest"
},
"recipient":
{
"id":"29:1nx20fU3aWIiv8P6DFhvS8GI0NRa-NlQ8ofk4i9ETyc0",
"name":"gopal ravipillai"
},
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"body": [
{
"type": "Input.ChoiceSet",
"id": "snooze",
"style": "ListStyle.List",
"choices": [
{
"title": "5 minutes",
"value": "5"
},
{
"title": "15 minutes",
"value": "15"
},
{
"title": "30 minutes",
"value": "30"
}
]
}
]
}
}
]
}发布于 2018-12-31 00:53:08
Skype频道不支持适配卡。请参阅通道检查器:https://docs.botframework.com/en-us/channel-inspector/channels/Skype?f=AdaptiveCards&e=example1
一种替代方法是识别通道类型并将特征更改为支持的通道类型。例如:当频道类型是Skype而不是自适应卡时,请使用Skype支持的内容,如缩略卡。要识别通道类型,请参阅:How to get channel name in Bot Framework
https://stackoverflow.com/questions/53977099
复制相似问题