Use this method to delete a whitelist.
Field
Type
Required
Description
method
String
Yes
"deleteWhitelist"
chat
Yes
Unique identifier for Group or Channel.
users
Array of String
Yes
Add list of users (mobile or Email) to blacklist.

Requests

json
{ "method": "deleteWhitelist", "users": ["54110"], "chat_id": "10223548995102447" }
java
ArrayList<String> users = new ArrayList<>(); users.add("111133"); api.deleteWhiteList(incomingMsg.getChat().getId(), users); public void deleteWhiteList(String chatId, List<String> users) { DeleteWhiteListOutMessage deleteWhiteListOutMessage = new DeleteWhiteListOutMessage(); deleteWhiteListOutMessage.setChatId(chatId); deleteWhiteListOutMessage.setUsers(users); api.send(deleteWhiteListOutMessage); }
javascript
let users = []; users.push("111133"); api.deleteWhiteList(incomingMsg.getChat().getId(), users);

Response

json
{ "method": "whitelist", "whitelist": { "chat": { "id": "90090684293612221" }, "eop": "13", "users": [{ "id": "645", "signup_user": "25648", "tags": ["1", "2"] } ] }