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

Requests

json
{ "method": "deleteBlacklist", "users": [ "541236" ], "chat_id": "53694411025874156" }
java
ArrayList<String> users = new ArrayList<>(); users.add("111133"); api.deleteBlackList(incomingMsg.getChat().getId(), users); public void deleteBlackList(String chatId, List<String> users) { DeleteBlackListOutMessage deleteBlackListOutMessage = new DeleteBlackListOutMessage(); deleteBlackListOutMessage.setChatId(chatId); deleteBlackListOutMessage.setUsers(users); api.send(deleteBlackListOutMessage); }
javascript
let users = []; users.push("111133"); api.deleteBlackList(incomingMsg.chat.id, users);

response

json
{ "method": "blacklist", "blacklist": { "chat": { "id": "90090684293612221" }, "eop": "19", "users": [{ "id": "2", "signup_user": "201116601107" }, { "id": "4", "signup_user": "201116601109" }, { "id": "5", "signup_user": "201116601111" }, { "id": "14", "signup_user": "1111111" }, { "id": "15", "signup_user": "222222" }, { "id": "19", "signup_user": "222223" } ] } }