moderation: add chat bans for groups/channels with web actions
All checks were successful
CI / test (push) Successful in 26s
All checks were successful
CI / test (push) Successful in 26s
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user