# `ExGram.Middleware.Builder`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.65.0/lib/ex_gram/middleware/builder.ex#L1)

Macros for building bot middleware chains, commands, regex patterns, and init hooks.

This module provides a DSL for declaratively configuring bot behavior using module
attributes. Use `use ExGram.Middleware.Builder` in your bot module to access the
`middleware/1-2`, `command/1-2`, `regex/2-3`, and `on_bot_init/1-2` macros.

At compile time, these declarations are collected and exposed via `middlewares/0`,
`commands/0`, `regexes/0`, and `bot_inits/0` functions.

See the [Middlewares guide](middlewares.md) for usage examples.

# `command`
*macro* 

# `compile_regex`

# `middleware`
*macro* 

# `on_bot_init`
*macro* 

# `regex`
*macro* 

---

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