Skip to content

Message

Structure Class

Message dataclass

Bases: _SerdeShape

Container for text that is returned to the customer..

Attributes

content class-attribute instance-attribute
content: str | None = ...

The text of the message.

content_type instance-attribute
content_type: str

Indicates the type of response.

image_response_card class-attribute instance-attribute
image_response_card: ImageResponseCard | None = ...

A card that is shown to the user by a messaging platform. You define the contents of the card, the card is displayed by the platform.

When you use a response card, the response from the user is constrained to the text associated with a button on the card.