2019-09-13 17:13:55 +02:00
|
|
|
---
|
|
|
|
title: encryptedFile
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Encrypted file.
|
2019-09-13 17:13:55 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: encryptedFile
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Encrypted file.
|
2019-09-13 17:13:55 +02:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|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|
|
2019-09-13 17:13:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 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}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|