# `ExGram.Plug`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram/plug.ex#L2)

A Plug to handle incoming Telegram updates in webhook mode. It checks for the secret
token (if configured) and processes the update accordingly.

This plug is used with `ExGram.Updates.Webhook` to receive updates from Telegram.
See the [Polling and Webhooks](polling-and-webhooks.md) guide for setup instructions.

---

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