MadelineProtoDocs/old_docs/API_docs_v29/constructors/encryptedFile.md
2020-06-16 17:50:25 +02:00

1.0 KiB

title description image
encryptedFile Encrypted file. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: encryptedFile

Back to constructors index

Encrypted file.

Attributes:

Name Type Required Description
id long Yes File ID
access_hash long Yes Checking sum depending on user ID
size int Yes File size in bytes
dc_id int Yes Number of data centre
key_fingerprint int Yes 32-bit fingerprint of key used for file encryption

Type: EncryptedFile

Example:

$encryptedFile = ['_' => 'encryptedFile', 'id' => long, 'access_hash' => long, 'size' => int, 'dc_id' => int, 'key_fingerprint' => int];

Or, if you're into Lua:

encryptedFile={_='encryptedFile', id=long, access_hash=long, size=int, dc_id=int, key_fingerprint=int}