Skip to content

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.

string = ...

Record<string, unknown>[] = ...

Record<string, unknown>[] = ...

"AdaptiveCard" = ...

string = ...

object

content: object

$schema: string

optional actions?: Record<string, unknown>[]

body: Record<string, unknown>[]

type: "AdaptiveCard"

version: string

contentType: "application/vnd.microsoft.card.adaptive"