--- 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} ```