Skip to content

Function: postCard()

postCard(cardDocument, signal?): Promise<void>

POST a compiled Adaptive Card to the configured Teams incoming webhook, wrapped in the MessageCard attachment envelope Teams expects. Throws when no webhook is configured, so a caller that reaches here without one gets a clear error rather than a silent no-op.

string = ...

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

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

"AdaptiveCard" = ...

string = ...

AbortSignal

Promise<void>