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

Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.

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

- `source`: Error source, must be file
- `type`: The section of the user's Telegram Passport which has the issue, one of "utility_bill”, "bank_statement”, "rental_agreement”, "passport_registration”, "temporary_registration”
- `file_hash`: Base64-encoded file hash
- `message`: Error message

# `t`

```elixir
@type t() :: %ExGram.Model.PassportElementErrorFile{
  file_hash: String.t(),
  message: String.t(),
  source: String.t(),
  type: String.t()
}
```

# `decode_as`

---

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