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

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.

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

- `file_id`: Identifier for this file, which can be used to download or reuse the file
- `file_unique_id`: Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
- `file_size`: File size in bytes
- `file_date`: Unix time when the file was uploaded

# `t`

```elixir
@type t() :: %ExGram.Model.PassportFile{
  file_date: integer(),
  file_id: String.t(),
  file_size: integer(),
  file_unique_id: String.t()
}
```

# `decode_as`

---

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