# `ExGram.Model.WebhookInfo`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram.ex#L3196)

Describes the current status of a webhook.

Check the [documentation of this model on Telegram Bot API](https://core.telegram.org/bots/api#webhookinfo)

- `url`: Webhook URL, may be empty if webhook is not set up
- `has_custom_certificate`: True, if a custom certificate was provided for webhook certificate checks
- `pending_update_count`: Number of updates awaiting delivery
- `ip_address (optional)`: Optional. Currently used webhook IP address
- `last_error_date (optional)`: Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook
- `last_error_message (optional)`: Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
- `last_synchronization_error_date (optional)`: Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters
- `max_connections (optional)`: Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
- `allowed_updates (optional)`: Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member

# `t`

```elixir
@type t() :: %ExGram.Model.WebhookInfo{
  allowed_updates: [String.t()] | nil,
  has_custom_certificate: boolean(),
  ip_address: String.t() | nil,
  last_error_date: integer() | nil,
  last_error_message: String.t() | nil,
  last_synchronization_error_date: integer() | nil,
  max_connections: integer() | nil,
  pending_update_count: integer(),
  url: String.t()
}
```

# `decode_as`

---

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