Skip to content

MessageDict

Dictionary Type

MessageDict

Bases: TypedDict

Dictionary form of Message.

Attributes

content instance-attribute
content: str | None

The text of the message.

content_type instance-attribute
content_type: Required[str]

Indicates the type of response.

image_response_card instance-attribute
image_response_card: ImageResponseCard | ImageResponseCardDict | 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.