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.
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
10 years ago
|
{
|
||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||
|
"type": "object",
|
||
|
"title": "NoticeMessage",
|
||
|
"description": "A m.notice message should be considered similar to a plain m.text message except that clients should visually distinguish it in some way. It is intended to be used by automated clients, such as bots, bridges, and other entities, rather than humans. Additionally, such automated agents which watch a room for messages and respond to them ought to ignore m.notice messages. This helps to prevent infinite-loop situations where two automated clients continuously exchange messages, as each responds to the other.",
|
||
|
"allOf": [{
|
||
|
"$ref": "core#/definitions/room_event"
|
||
|
}],
|
||
|
"properties": {
|
||
|
"content": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"msgtype": {
|
||
|
"type": "string",
|
||
|
"enum": ["m.notice"]
|
||
|
},
|
||
|
"body": {
|
||
|
"type": "string",
|
||
|
"description": "The notice text to send."
|
||
|
}
|
||
|
},
|
||
|
"required": ["msgtype", "body"]
|
||
|
},
|
||
|
"type": {
|
||
|
"type": "string",
|
||
|
"enum": ["m.room.message"]
|
||
|
}
|
||
|
}
|
||
|
}
|