docs(api): clarify message delete semantics and channel constraints
Some checks failed
CI / test (push) Failing after 1m6s
Some checks failed
CI / test (push) Failing after 1m6s
This commit is contained in:
@@ -969,6 +969,16 @@ Response: `200` + `MessageRead`
|
||||
Auth required.
|
||||
Response: `204`
|
||||
|
||||
Behavior:
|
||||
|
||||
- `for_all=false`:
|
||||
- in regular chats: hides message only for current user.
|
||||
- in channels: not allowed (`422`), channel messages are delete-for-all only.
|
||||
- `for_all=true`:
|
||||
- private chats: allowed.
|
||||
- own messages: allowed.
|
||||
- group/channel messages by others: allowed only for `owner/admin`.
|
||||
|
||||
### POST `/api/v1/messages/status`
|
||||
|
||||
Auth required.
|
||||
|
||||
Reference in New Issue
Block a user