AdaptiveCardCard Class

A card that carries a raw Adaptive Card JSON payload.

The JSON is stored verbatim in content and unpacked into the attachment as nested JSON when the activity is serialized.

Constructor

pydantic model AdaptiveCardCard

Parameters

Name Description
content
Required
str

The Adaptive Card content as a JSON string.

Keyword-Only Parameters

Name Description
content
Default value: None

Methods

to_attachment

Creates a new Attachment that wraps this card.

The stored JSON string is parsed so that it is embedded as nested JSON in the attachment.

to_message

Creates a new message activity that includes this card as an attachment.

to_attachment

Creates a new Attachment that wraps this card.

The stored JSON string is parsed so that it is embedded as nested JSON in the attachment.

to_attachment() -> Attachment

Returns

Type Description

The generated attachment.

to_message

Creates a new message activity that includes this card as an attachment.

to_message() -> Activity

Returns

Type Description

An Activity representing a message activity with the card attached.

Attributes

content

field content: str = None