Use this method to delete blacklist patterns.
Field | Type | Required | Description |
method | String | Yes | "deleteBlacklistPatterns" |
chat | Yes | Unique identifier for Group or Channel. | |
pattern | Array of String | Yes | Add a list of patterns. |
Requests
json{ "method": "deleteBlacklistPatterns", "pattern": [ "558*" ], "chat_id": "64852102333541879" }
javaArrayList<String> pattern = new ArrayList<>(); pattern.add("222*"); api.deleteBlackListPatterns(incomingMsg.getChat().getId(), pattern); public void deleteBlackListPatterns(String chatId, List<String> pattern) { DeleteBlackListPatternsOutMessage deleteBlackListPatterns = new DeleteBlackListPatternsOutMessage(); deleteBlackListPatterns.setChatId(chatId); deleteBlackListPatterns.setPattern(pattern); api.send(deleteBlackListPatterns); }
javascriptlet pattern = []; pattern.push("222*"); api.deleteBlackListPatterns(incomingMsg.chat.id, pattern);
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" } ] } }