【发布时间】:2020-01-22 23:43:40
【问题描述】:
我正在使用 microsoft 团队 bot 框架,我想要一个带有按钮的自适应卡,以在弹出窗口中打开 url(其他浏览器) 通过使用 (Actions.openUrl) 它在默认浏览器中打开一个 URL。 并希望它在其他浏览器中打开
这是我尝试过的,我正在使用 node.js
var card = {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [{
"type": "Container",
"items": [{
"type": "TextBlock",
"text": `${session.message.text}`,
"weight": "bolder",
"size": "medium"
}
]
},
{
"type": "Image",
"url": `${bodyData.img}`
},
{
"type": "Container",
"items": [{
"type": "TextBlock",
"text": `${bodyData.calendar}`,
"wrap": true
}]
}
],
"actions": [
{
"type": "Action.openUrl",
"title": "Open in Popout",
"url": `${bodyData.url}`
}
]};
【问题讨论】:
标签: node.js botframework bots microsoft-teams adaptive-cards