MessageContent

@Serializable
sealed interface MessageContent

The content of the message as text or image.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "image_file")
data class Image(val imageFile: ImageFile) : MessageContent

References an image File in the content of a message.

Link copied to clipboard
@Serializable
@SerialName(value = "text")
data class Text(val text: TextContent) : MessageContent

The content of the message as text.