Closed MichaMican closed 10 months ago
SendAdaptiveCard() isn't part of the Bot Framework SDK. It's tied to the Teams Toolkit and TeamsFx repo.
You might want to drop an issue over there. The TeamsFx folks should sort you out.
Let me know if you have any question. Thanks.
Thanks for the clarification!
I have created a issue on TeamsFx side - Therefore i close this for now :)
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
4.18.1
Describe the bug
When calling the
SendAdaptiveCard()
function of aTeamsBotInstallation
with a generic object of typeobject
the internal serialization does not wokr properly and a empty adaptive card is send (see Screenshots)To Reproduce
Steps to reproduce the behavior:
Replace the notification PostAsync controller code with the following:
Expected behavior
The adaptivecard that was send to the endpoint should be send properly
Screenshots
Additional context
I worked arround the issue in a very weird way. I basically converted the object to something that Newtonsoft.Json can deserialize properly
then i Deserialize the serializedAdaptiveCard with Newtonsoft JSON
This is an unbelievably dirty workarround. I am not sure if Newtonsoft.Json can be configured to serialize object properly but swapping to System.Text.Json should fix te issue
Tracking Status
Dotnet SDK [TODO]()
Javascript SDK [TODO]()
Python SDK [TODO]()
Java SDK [TODO]()
Samples [TODO]()
Docs [TODO]()
Tools [TODO]()