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.
Parameters
Section titled “Parameters”cardDocument
Section titled “cardDocument”$schema
Section titled “$schema”string = ...
actions?
Section titled “actions?”Record<string, unknown>[] = ...
Record<string, unknown>[] = ...
"AdaptiveCard" = ...
version
Section titled “version”string = ...
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>