deleteWhitelistPatterns

Use this method to delete whitelist patterns.
Field
Type
Required
Description
method
String
Yes
"deleteWhitelistPatterns"
chat
Yes
Unique identifier for Group or Channel.
pattern
Array of String
Yes
Add a list of patterns.

Requests

json
{ "method": "deleteWhitelistPatterns", "pattern": ["4478*"], "chat_id": "22145877013698541" }
java
ArrayList<String> pattern = new ArrayList<>(); pattern.add("5555*"); api.deleteWhiteListPatterns(incomingMsg.getChat().getId(), pattern); public void deleteWhiteListPatterns(String chatId, List<String> pattern) { DeleteWhiteListPatternsOutMessage deleteWhiteListPatterns = new DeleteWhiteListPatternsOutMessage(); deleteWhiteListPatterns.setChatId(chatId); deleteWhiteListPatterns.setPattern(pattern); api.send(deleteWhiteListPatterns); }
javascript
let pattern = []; pattern.push("5555*"); api.deleteWhiteListPatterns(incomingMsg.chat.id, pattern);

Response

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