| Name |
Type |
Description |
Notes |
| type |
str |
The type of message. |
[default to 'text'] |
| text |
str |
The text content of the message. Required unless `actions`, `htmlText` or `markdownText` is provided. |
[optional] |
| html_text |
str |
HTML text content of the message. Can be provided in place of `text`. Cannot be used with `markdownText`. If no `text` is provided, will be converted to `text` upon reception to be displayed on channels that do not support rich text. See rich text documentation for more information. |
[optional] |
| block_chat_input |
bool |
When set to true, the chat input will be disabled on supported client implementations when the message is the most recent one in the history. Can be used for guided flows or to temporarily disable the user's ability to send messages in the conversation. |
[optional] |
| markdown_text |
str |
Markdown text content of the message. Can be provided in place of `text`. Cannot be used with `htmlText`. Will be converted to `htmlText` upon reception. If converted `htmlText` exceeds 4096 characters, the message will be rejected. If no `text` is provided, will be converted to `text` upon reception to be displayed on channels that do not support rich text. See rich text documentation for more information. |
[optional] |
| actions |
List[Action] |
Array of message actions. |
[optional] |
| payload |
str |
The payload of a reply button response message. |
[optional] |
from sunshine_conversations_client.model.text_message import TextMessage
# TODO update the JSON string below
json = "{}"
# create an instance of TextMessage from a JSON string
text_message_instance = TextMessage.from_json(json)
# print the JSON string representation of the object
print(TextMessage.to_json())
# convert the object into a dict
text_message_dict = text_message_instance.to_dict()
# create an instance of TextMessage from a dict
text_message_from_dict = TextMessage.from_dict(text_message_dict)
[Back to Model list] [Back to API list] [Back to README]