Parameter GROUPS_KEYWORDS¶
The parameter sets an array of keywords and phrases for creating or activating existing topics to 🟪 user_answered status from ⬛️ closed status.
The filter triggers when the frontend (connected bot or account) sees a message in a group chat with the specified keywords.
After the topic moves to any active state 🟪 user_answered or 🟨 support_answered, all messages are relayed to it without keyword filtering until it returns to ⬛️ closed status (by /close command or by timeout).
By default, the parameter has the value OFF, which means no keyword filtering of messages in groups.
For the GROUPS_KEYWORDS filter to work, the MONITOR_GROUPS parameter must be set to TRUE (not set by default).
Data Format¶
Each string value must be enclosed in double quotes. Values separated by commas. String case is ignored by default.
Phrases are formed from a set of keywords with square brackets [] (must contain each of the specified words).
To negate a word, put a ~ sign before it.
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¶
OFF
Usage Examples¶
"word1", "word2", ["word3","word4"], ["word5","~word6"]
Result: topic will be created or activated only if a message in a public or private group chat contains
word1 or word2
OR
phrase with word3 and word4
OR
phrase where there is word5, but no word6.
Used in cases:
- filtering group chats by keywords