moderation: add chat bans for groups/channels with web actions
All checks were successful
CI / test (push) Successful in 26s

This commit is contained in:
2026-03-08 14:29:21 +03:00
parent 76cc5e0f12
commit db700bcbcd
10 changed files with 224 additions and 3 deletions

View File

@@ -747,6 +747,17 @@ Response: `200` + `ChatMemberRead`
Auth required.
Response: `204`
### POST `/api/v1/chats/{chat_id}/bans/{user_id}`
Auth required (`owner/admin` in group/channel).
Response: `204`
Behavior: bans user from chat and removes membership if present.
### DELETE `/api/v1/chats/{chat_id}/bans/{user_id}`
Auth required (`owner/admin` in group/channel).
Response: `204`
### POST `/api/v1/chats/{chat_id}/leave`
Auth required.