Adaptive Cards Support for Microsoft Teams

混江龙づ霸主 提交于 2019-12-13 02:49:02

问题


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."

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

Environment: Adaptive Cards v 0.5.1.0


回答1:


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

A couple of things to note:

  • 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! :)


来源:https://stackoverflow.com/questions/51792512/adaptive-cards-support-for-microsoft-teams

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!