MadelineProtoDocs/docs/API_docs/constructors/encryptedFile.md
2019-12-27 17:48:04 +01:00

43 lines
1.0 KiB
Markdown

---
title: encryptedFile
description: Encrypted file.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: encryptedFile
[Back to constructors index](index.md)
Encrypted file.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|File ID|
|access\_hash|[long](../types/long.md) | Yes|Checking sum depending on user ID|
|size|[int](../types/int.md) | Yes|File size in bytes|
|dc\_id|[int](../types/int.md) | Yes|Number of data centre|
|key\_fingerprint|[int](../types/int.md) | Yes|32-bit fingerprint of key used for file encryption|
### Type: [EncryptedFile](../types/EncryptedFile.md)
### Example:
```php
$encryptedFile = ['_' => 'encryptedFile', 'id' => long, 'access_hash' => long, 'size' => int, 'dc_id' => int, 'key_fingerprint' => int];
```
Or, if you're into Lua:
```lua
encryptedFile={_='encryptedFile', id=long, access_hash=long, size=int, dc_id=int, key_fingerprint=int}
```