Microsoft Teams 的自适应卡片支持 [英] Adaptive Cards Support for Microsoft Teams

查看:170
本文介绍了Microsoft Teams 的自适应卡片支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 MSFT 聊天机器人与 Teams 集成,我能够连接和交互,但是对于基于自适应卡片的响应,我收到以下错误不支持指定的卡片版本."

I have integrated a the MSFT chatbot with Teams, i am able to connect and interact, however for response that are based on Adaptive Cards, i get the below error "The specified card version is not supported."

知道 MSFT 团队何时支持自适应卡.

Any idea when the adaptive cards be supported with MSFT teams.

环境:自适应卡片 v 0.5.1.0

Environment: Adaptive Cards v 0.5.1.0

推荐答案

Microsoft Teams 现在支持自适应卡片(桌面版和 Web 版).

Adaptive cards are now supported in Microsoft Teams (on desktop and web).

需要注意的几点:

  • 您使用的是旧版本的 nuget 包.请使用这个:https://www.nuget.org/packages/AdaptiveCards/(v1.0.3 是目前​​最新的版本)
  • 检查您在请求中发送的附件内容,并确保它是自适应卡(AdaptiveCard 的实例),版本 = 1.0.Attachment.Content 是 object 类型,所以很容易不小心把其他东西放在那里——在我的例子中是 AdaptiveCardParseResult,哎呀!:)
  • You're using the old version of the nuget package. Please use this one: https://www.nuget.org/packages/AdaptiveCards/ (v1.0.3 is the currently the latest version)
  • Check the attachment content you're sending in your request, and make sure it's an adaptive card (instance of AdaptiveCard) w/ version = 1.0. Attachment.Content is of type object, so it's easy to accidentally put other things in there--in my case an AdaptiveCardParseResult, oops! :)

这篇关于Microsoft Teams 的自适应卡片支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆