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

Typed Telegram media send result (photo/document/media-group).

# `t`

```elixir
@type t() :: %Jido.Chat.Telegram.MediaMessage{
  caption: nil | binary(),
  chat_id: nil | any(),
  date: nil | any(),
  file_id: nil | binary(),
  id: binary(),
  kind: :photo | :document | :media_group,
  message_id: nil | binary(),
  metadata: map(),
  raw: nil | any()
}
```

# `from_map`

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

Builds media message from serialized map data.

# `new`

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

Creates a typed media send result.

# `schema`

Returns the Zoi schema for MediaMessage.

# `to_map`

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

Serializes media message into plain map with type marker.

---

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