RoomMessageEventContent

Matrix room message event content

Room messages have "type": "m.room.message".

See also

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
@Serializable
data class Location(val body: String, val geoUri: String, val relatesTo: RelatesTo? = null, val mentions: Mentions? = null, val externalUrl: String? = null) : RoomMessageEventContent
Link copied to clipboard
object Serializer : KSerializer<RoomMessageEventContent>
Link copied to clipboard
Link copied to clipboard
data class Unknown(val type: String, val body: String, val raw: JsonObject, val format: String? = null, val formattedBody: String? = null, val relatesTo: RelatesTo? = null, val mentions: Mentions? = null, val externalUrl: String? = null) : RoomMessageEventContent
Link copied to clipboard
@Serializable
data class VerificationRequest(val fromDevice: String, val to: UserId, val methods: Set<VerificationMethod>, val body: String = "Attempting verification request (m.key.verification.request). Apparently your client doesn't support this.", val format: String? = null, val formattedBody: String? = null, val relatesTo: RelatesTo? = null, val mentions: Mentions? = null, val externalUrl: String? = null) : RoomMessageEventContent, VerificationRequest

Properties

Link copied to clipboard
abstract val body: String
Link copied to clipboard
abstract val externalUrl: String?
Link copied to clipboard
abstract val format: String?
Link copied to clipboard
abstract val formattedBody: String?
Link copied to clipboard
abstract val mentions: Mentions?
Link copied to clipboard
abstract val relatesTo: RelatesTo?
Link copied to clipboard
abstract val type: String

Functions

Link copied to clipboard
abstract fun copyWith(relatesTo: RelatesTo?): MessageEventContent

This should return the same instance, but with the relatesTo property set to the given value. It is used for event content replacing.