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

Built-in filter that matches inline query updates.

## Usage

    filter ExGram.Router.Filters.InlineQuery
    filter :inline_query

    # Match a specific query string (exact match)
    filter :inline_query, "search"

    # Match against a regex
    filter :inline_query, ~r/^@\w+/

    # Keyword list matchers
    filter :inline_query, prefix: "@"
    filter :inline_query, suffix: "!"
    filter :inline_query, contains: "bot"

## Options

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

---

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