# `ExGram.Model.InputRichMessageMedia`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.69.0/lib/ex_gram.ex#L7119)

Describes a media element embedded in an outgoing rich message.

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

- `id`: Unique identifier of the media used in a tg://photo?id=, tg://video?id=, or tg://audio?id= link. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.
- `media`: The media to be sent. Everything except the media itself and its properties is ignored.

# `t`

```elixir
@type t() :: %ExGram.Model.InputRichMessageMedia{
  id: String.t(),
  media:
    ExGram.Model.InputMediaAnimation.t()
    | ExGram.Model.InputMediaAudio.t()
    | ExGram.Model.InputMediaPhoto.t()
    | ExGram.Model.InputMediaVideo.t()
    | ExGram.Model.InputMediaVoiceNote.t()
}
```

# `decode_as`

---

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