# `ExGram.Router.Filters.Text`
[🔗](https://github.com/rockneurotiko/ex_gram_router/blob/v0.1.0/lib/ex_gram/router/filters/text.ex#L1)

Built-in filter that matches plain text message updates.

## Usage

    # Match any text message
    filter ExGram.Router.Filters.Text
    filter :text

    # Match text exactly
    filter :text, "hello"

    # Match text against a regex
    filter :text, ~r/^\d+$/

    # Keyword list matchers
    filter :text, prefix: "!"
    filter :text, suffix: "?"
    filter :text, contains: "hello"

## Options

- `nil` — matches any text update
- `string` — matches if the text equals the string exactly
- `%Regex{}` — matches if the text matches the regex
- `prefix: string` — matches if the text starts with the given prefix
- `suffix: string` — matches if the text ends with the given suffix
- `contains: string` — matches if the text contains the given substring

---

*Consult [api-reference.md](api-reference.md) for complete listing*
