# `ExGram.Updates.Webhook`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram/updates/webhook.ex#L1)

Updates implementation using the webhook method.

This GenServer receives updates pushed from Telegram via webhooks. On startup,
it automatically calls `ExGram.set_webhook/2` to register the webhook URL with
Telegram.

The webhook URL is constructed as `<base_url>/<path>/<token_hash>`, where
`token_hash` is a Base64-encoded SHA hash of the bot token.

The default <path> is `/telegram`, but it can be customized via the `:path` option in the configuration.

Configure the webhook with `config :ex_gram, updates: ExGram.Updates.Webhook, webhook: [...]`.

See the [Polling and Webhooks guide](polling-and-webhooks.md) and `ExGram.Plug`
for more details.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `init`

# `start_link`

# `update`

---

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