Skip to content

Parameter RESTRICTED_KEYWORDS_FRONTEND

The parameter defines a list of prohibited keywords and combinations. If an incoming message matches any condition in the list, it will not be forwarded to the backend group.

By default, the list is empty, which means no keyword filtering for incoming messages.

Data Format

Each string value must be enclosed in double quotes, values separated by commas. String case is ignored by default.

  • individual strings work as alternative conditions (OR): matching any one of them is enough
  • a nested list works as a combined condition (AND): all words in the list must appear in the message

To clear the list, send the value OFF

The setup bot needs to be sent the required value after selecting the parameter for editing.

Default Value

NONE

Usage Examples

"word1", "word2"

Result: do not forward messages containing word1 or word2 to operators.

A mixed rule with an individual word and a combination of words:

"word1", ["word2", "word3"]

Result: do not forward messages containing word1 or both word2 and word3.

Value format

Do not change the quote or bracket types when using the example. The method accepts a valid json list of strings and nested lists.

Used in cases:

  • filtering out advertising or irrelevant messages when monitoring chats
  • controlling sending client contacts to operators