# `ExGram.Model.InputRichBlockDocument`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.71.0/lib/ex_gram.ex#L7951)

A block with a general file, corresponding to the custom HTML tag <tg-document>.

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

- `type`: Type of the block, always "document”
- `document`: The document. Caption is ignored.
- `caption (optional)`: Optional. Caption of the block

# `t`

```elixir
@type t() :: %ExGram.Model.InputRichBlockDocument{
  caption: ExGram.Model.RichBlockCaption.t() | nil,
  document: ExGram.Model.InputMediaDocument.t(),
  type: String.t()
}
```

# `decode_as`

---

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