# FAQ

{% hint style="warning" %}
Note:

* Always enable Regex Mode when using these patterns.
* Use \bword\b to match a full word only.
* Escape special characters like . → \\. when needed.
  {% endhint %}

#### 🚫 Q: How do I block messages containing any link?

Regex Pattern:

```
(http|https|www)\S+
```

Example Message:

> Visit <https://example.com> for more info.

❌ Result: Blocked

***

#### ⚠️ Q: How do I block messages with words like “scam” or “fraud”?

Regex Pattern:

```
(scam|fraud)
```

Example Message:

> This is a fraud alert.

❌ Result: Blocked

***

#### 🧠 Q: How do I block messages that contain both “buy” and “cheap”?

Regex Pattern:

```
^(?=.*\bbuy\b)(?=.*\bcheap\b).*
```

Example Message:

> Buy this product for a cheap price!

❌ Result: Blocked

***

#### ✅ Q: How to block messages that contain both “buy” AND “cheap”?

Setup:

* Condition 1: buy
* Add AND → cheap

Example Message:

> Buy this product for a cheap price!

❌ Result: Blocked

***

#### 🔁 Q: How to block messages that contain either “spam”OR “ad”?

Setup:

* Condition 1: spam
* Add OR → ad

Example Message:

> This is a spam message with an ad.

❌ Result: Blocked

***

#### 🧩 Q: How to combine multiple AND/OR conditions?

Setup:

* Condition 1: buy
* AND → cheap
* OR → scam

Example Messages:

| Message                             | Result        |
| ----------------------------------- | ------------- |
| Buy this product for a cheap price! | ❌ Blocked     |
| This is a scam message              | ❌ Blocked     |
| Buy now                             | ✅ Not blocked |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v2.autoforwardtelegram.com/filters/blacklist/faq.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
