You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
763 B
Plaintext
29 lines
763 B
Plaintext
10 years ago
|
{
|
||
|
"type": "object",
|
||
|
"title": "TextMessage",
|
||
|
"description": "This message is the most basic message and is used to represent text.",
|
||
|
"allOf": [{
|
||
9 years ago
|
"$ref": "core-event-schema/room_event.json"
|
||
10 years ago
|
}],
|
||
|
"properties": {
|
||
|
"content": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"msgtype": {
|
||
|
"type": "string",
|
||
|
"enum": ["m.text"]
|
||
|
},
|
||
|
"body": {
|
||
|
"type": "string",
|
||
|
"description": "The body of the message."
|
||
|
}
|
||
|
},
|
||
|
"required": ["msgtype", "body"]
|
||
|
},
|
||
|
"type": {
|
||
|
"type": "string",
|
||
|
"enum": ["m.room.message"]
|
||
|
}
|
||
|
}
|
||
|
}
|