Add error types to basic chat ext

This commit is contained in:
ChronosX88 2020-09-05 23:48:11 +04:00
parent a6617a5c0b
commit 9ea670c6d4
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -15,6 +15,10 @@ This extension is intended for organizing chats between some entities.
- Ratelimit system: disabled - Ratelimit system: disabled
- Authorization: enabled - Authorization: enabled
### 3.1. Error types
- `urn:cadmium:chats:private:banned` - Sending messages to user is prohibited, because he banned the sender of current message
## 4. Chat message types ## 4. Chat message types
- `urn:cadmium:chats:message-types:general` - message with text and optional media - `urn:cadmium:chats:message-types:general` - message with text and optional media
@ -65,7 +69,7 @@ This extension is intended for organizing chats between some entities.
"from": "cadmium.org", "from": "cadmium.org",
"ok": false, "ok": false,
"payload": { "payload": {
"errID": "banned", "errID": "urn:cadmium:chats:private:banned",
"errText": "The user banned you" "errText": "The user banned you"
} }
} }