As of 9/19/2019, for some reason you still cannot send AdaptiveCards, you need to use the older MessageCards with Teams Connectors.
This is no longer the case. Adaptive cards are now supported for ordinary Teams webhooks, albeit without templating support. All it takes is to attach the card to a "JSON envelope" of type message, and specifying the attachment content type application/vnd.microsoft.card.adaptive.
To manually test this, use Postman (or similar) to POST an HTTP request with the following raw body to a Teams webhook endpoint:
Upgrading to using Adaptive Cards will not only future-proof this app, but arguably make development and maintenance easier since one can use the Adaptive Cards Designer to tinker with and preview card layouts.
With regards to the following note in the README:
This is no longer the case. Adaptive cards are now supported for ordinary Teams webhooks, albeit without templating support. All it takes is to attach the card to a "JSON envelope" of type
message
, and specifying the attachment content typeapplication/vnd.microsoft.card.adaptive
.To manually test this, use Postman (or similar) to POST an HTTP request with the following raw body to a Teams webhook endpoint:
Result:
Upgrading to using Adaptive Cards will not only future-proof this app, but arguably make development and maintenance easier since one can use the Adaptive Cards Designer to tinker with and preview card layouts.