我正在使用FAQ PLUS Bot模板。
我想发一个帖子到团队频道。可以很好地创建要在团队中发布的消息,但是当代码使用时
BotFrameworkAdapter.CreateConversationAsync()
,由于错误的请求,执行失败。我已经搜索了有关它的数据,但是没有与此相关的信息。我在本地和云中进行了测试,但是都失败了。
日志输出为:
Microsoft.Bot.Schema.ErrorResponseException:操作返回了无效的状态码“ BadRequest”
我要在自适应卡中发送的已验证的消息
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"size": "large",
"weight": "bolder",
"text": "Titulo",
"wrap": true
},
{
"type": "TextBlock",
"text": "**** is requesting support.",
"wrap": true
},
{
"type": "FactSet",
"facts": [
{
"title": "Description:",
"value": "Descripcion"
},
{
"title": "Status: ",
"value": "Unassigned"
}
]
}
],
"actions": [
{
"type": "Action.OpenUrl",
"url": "https://www.google.com/search?q=RE%3A%20Titulo",
"title": "Chat with "
},
{
"type": "Action.ShowCard",
"card": {
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Input.ChoiceSet",
"id": "Action",
"value": "AssignToSelf",
"style": "compact",
"isMultiSelect": false,
"choices": [
{
"title": "Assign to me",
"value": "AssignToSelf"
},
{
"title": "Close",
"value": "Close"
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"data": {
"ticketId": "a3ac342f-b0e5-4ff4-855c-98856df7ed9b",
"action": null
}
}
]
},
"title": "Change status"
}
]
}
让我知道你们中是否有人对此有所了解。