Microsoft Teams Card Action Launch App Tab 而不是在默认浏览器中打开页面
Microsoft Teams Card Action Launch App Tab instead of opening the page in default browser
我一直在尝试使用 Microsoft Bot Framework 开发 Bot,但在查找有关如何从 MessageCard 中获取按钮的资源时遇到了问题
and/or rich card 附件在 Windows 10 的 Teams 桌面应用程序中打开我的应用程序选项卡。我一直在参考 link 编辑自 MSDN 的文档并且想知道如果有任何好的例子可以效仿。当前浏览器在单击按钮时启动(而不是停留在应用程序中)。
这张卡片很简单,但是,我只需要通过这个基本场景就可以了
My Card。有没有办法从“阅读文章”按钮启动选项卡?
编辑/附加信息:
阅读文章按钮下的link是:
https://teams.microsoft.com/l/entity/14ec8cab-b2b7-4596-b358-a1ce962d5c7b/myAppTab?webUrl=https://myappsite.azurewebsites.net&label=News&context={'canvasUrl': 'https://myappsite.azurewebsites.net','channelId': '19:beb48ac89f9a4a329aa10e6e6da50905@thread.skype'}
唯一标识符表示应用程序id,使用Teams SDK (1.2) 的setSettings 函数持久化的entityId 从设置为"myAppTab"。
确保 appId、entityId、entityWebUrl、subEntityWebUrl、entityLabel、subEntityLabel 和 context 都是 URI 编码的。
请检查 Generating a deep link to your tab 文档。
注意:添加评论中的答案以便于访问。
我一直在尝试使用 Microsoft Bot Framework 开发 Bot,但在查找有关如何从 MessageCard 中获取按钮的资源时遇到了问题 and/or rich card 附件在 Windows 10 的 Teams 桌面应用程序中打开我的应用程序选项卡。我一直在参考 link 编辑自 MSDN 的文档并且想知道如果有任何好的例子可以效仿。当前浏览器在单击按钮时启动(而不是停留在应用程序中)。
这张卡片很简单,但是,我只需要通过这个基本场景就可以了 My Card。有没有办法从“阅读文章”按钮启动选项卡?
编辑/附加信息:
阅读文章按钮下的link是:
https://teams.microsoft.com/l/entity/14ec8cab-b2b7-4596-b358-a1ce962d5c7b/myAppTab?webUrl=https://myappsite.azurewebsites.net&label=News&context={'canvasUrl': 'https://myappsite.azurewebsites.net','channelId': '19:beb48ac89f9a4a329aa10e6e6da50905@thread.skype'}
唯一标识符表示应用程序id,使用Teams SDK (1.2) 的setSettings 函数持久化的entityId 从设置为"myAppTab"。
确保 appId、entityId、entityWebUrl、subEntityWebUrl、entityLabel、subEntityLabel 和 context 都是 URI 编码的。
请检查 Generating a deep link to your tab 文档。
注意:添加评论中的答案以便于访问。