I'm using the MS Graph API Explorer to send messages to Channels in Teams, but whenever I send a message with an Adaptive Card attached, it adds padding to the top of the card and a 3-dot menu on the right with a "Copy" option.
The examples in Microsoft's documentation do not seem to have this problem.
Image of Card in Teams with extra padding at top
Is there a way to remove this padding and menu? or can I alter the content shown in this space?
I'm using the following endpoint... https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages
With the following request body...
{
"body": {
"contentType": "html",
"content": "<attachment id=\"4465B062-EE1C-4E0F-B944-3B7AF61EAF40\"></attachment>"
},
"attachments": [
{
"id": "4465B062-EE1C-4E0F-B944-3B7AF61EAF40",
"contentType": "application/vnd.microsoft.card.adaptive",
"content": "{\n \"type\": \"AdaptiveCard\",\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\n \"version\": \"1.3\",\n \"body\": [\n {\n \"type\": \"TextBlock\",\n \"size\": \"Large\",\n \"weight\": \"Bolder\",\n \"text\": \"My News Item\",\n \"wrap\": true\n }\n ],\n \"actions\": [\n {\n \"type\": \"Action.OpenUrl\",\n \"title\": \"View\",\n \"url\": \"https://bing.com\"\n }\n ]\n }"
}
]
}