# `Jido.Chat.Telegram.UpdateEnvelope`
[🔗](https://github.com/agentjido/jido_chat_telegram/blob/v1.0.0/lib/jido/chat/telegram/update_envelope.ex#L1)

Typed Telegram update envelope for extension-level ingest.

# `t`

```elixir
@type t() :: %Jido.Chat.Telegram.UpdateEnvelope{
  id: binary(),
  metadata: map(),
  payload: nil | any(),
  raw: map(),
  update_id: nil | integer(),
  update_type:
    :message
    | :edited_message
    | :channel_post
    | :edited_channel_post
    | :callback_query
    | :message_reaction
    | :noop
    | :unsupported
}
```

# `from_map`

```elixir
@spec from_map(map()) :: t()
```

Builds update envelope from serialized map data.

# `new`

```elixir
@spec new(map()) :: t()
```

Creates a Telegram update envelope.

# `schema`

Returns the Zoi schema for UpdateEnvelope.

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

Serializes update envelope into a plain map with type marker.

---

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