> For the complete documentation index, see [llms.txt](https://docs.paal.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paal.ai/mypaal/telegram/filters.md).

# Filters

To create a filter based on specific keywords, you can utilize the following syntax:

* **For Text-Based Filters:**

  * Example:

    ```css
    /addfilter [keyword] message to be sent
    ```

  This command associates a given keyword with a specific message that will be sent in response.
* **For Media-Based Filters (including audio, picture, or video):**
  * First, select the desired media file.
  * Then, use the command in the file's caption, as follows:

    ```css
    /addfilter [keyword] message to be sent
    ```

    In this context, the accompanying message is optional.
