I'm using the Java botbuilder to build a microsoft teams bot. I want to add Cards to my bot (e.g. to embed links, quick replies, and images).
In the above link it says: suggested actions are not supported in Microsoft Teams: if you want buttons to appear on a Teams bot message, use a card.
However, I can find no documentation on how to add a 'card' to the Activity
schema.
I tried:
1. Using suggested actions
I tried adding my
List<CardAction>
to theSuggestedActions
field inActivity
but they were not rendered by microsoft teams (as expected, the documentation says this is not supported).
2. Using Attachments
I suspect it could be done using attachments, but can only find documentation for the C#/JS versions (e.g. https://docs.microsoft.com/en-us/azure/bot-service/nodejs/bot-builder-nodejs-send-rich-cards?view=azure-bot-service-3.0).
So I want to know how to add 'a card' to Activity
schema so it can be rendered by my bot.