If you add the same user to the blacklist and whitelist, the priority goes to the blacklist.
This feature is limited to apps created using the nandbox app builder.
This object represents a whitelist. It is returned as a reply to getWhitelist.
Field | Type | Required | Description |
chat | Yes | Unique identifier object where administrators belongs to Channel or Group | |
eop | String | Yes | Number of page. |
users | Array of SignupUsers | Yes | Array of users. |
Signup User
Field | Type | Required | Description |
id | String | yes | ID of the signup user. |
signup_user | String | Yes | Signup user (mobile number or email) |
tags | Array of String | Optional | Only when you have tags in the whitelist. |
Data
Field | Type | Required | Description |
pattern | String | Yes | Add pattern to black or whitelist. |
example | String | Yes | Add an example of a pattern. |
Object
json{ "whitelist": { "chat": { "id": "90090684293612221" }, "eop": "13", "users": [{ "id": "645", "signup_user": "25648", "tags": ["1", "2"] } ] }
Response
json{ "method": "whitelist", "whitelist": { "chat": { "id": "90090684293612221" }, "eop": "13", "users": [{ "id": "645", "signup_user": "25648", "tags": ["1", "2"] } ] }