MadelineProtoDocs/old_docs/API_docs_v82/constructors/secureFile.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.3 KiB

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

Constructor: secureFile

Back to constructors index

Secure file

Attributes:

Name Type Required Description
id long Yes ID
access_hash long Yes Access hash
size int Yes Size
dc_id int Yes DC ID
date int Yes Date
file_hash bytes Yes File hash
secret bytes Yes Secret

Type: SecureFile

Example:

$secureFile = ['_' => 'secureFile', 'id' => long, 'access_hash' => long, 'size' => int, 'dc_id' => int, 'date' => int, 'file_hash' => 'bytes', 'secret' => 'bytes'];

PWRTelegram json-encoded version:

{"_": "secureFile", "id": long, "access_hash": long, "size": int, "dc_id": int, "date": int, "file_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

secureFile={_='secureFile', id=long, access_hash=long, size=int, dc_id=int, date=int, file_hash='bytes', secret='bytes'}