Function: toCardAttachment()
toCardAttachment(
card):object
Wrap a compiled Adaptive Card as a Teams attachment.
Browser-safe and shared so the server (building a reply) and any client (rendering an optimistic local activity) tag attachments identically.
Parameters
Section titled “Parameters”$schema
Section titled “$schema”string = ...
actions?
Section titled “actions?”Record<string, unknown>[] = ...
Record<string, unknown>[] = ...
"AdaptiveCard" = ...
version
Section titled “version”string = ...
Returns
Section titled “Returns”object
content
Section titled “content”content:
object
content.$schema
Section titled “content.$schema”$schema:
string
content.actions?
Section titled “content.actions?”
optionalactions?:Record<string,unknown>[]
content.body
Section titled “content.body”body:
Record<string,unknown>[]
content.type
Section titled “content.type”type:
"AdaptiveCard"
content.version
Section titled “content.version”version:
string
contentType
Section titled “contentType”contentType:
"application/vnd.microsoft.card.adaptive"