1.3 KiB
1.3 KiB
title | description | image |
---|---|---|
secureFile | secureFile attributes, type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: secureFile
Attributes:
Name | Type | Required |
---|---|---|
id | long | Yes |
access_hash | long | Yes |
size | int | Yes |
dc_id | int | Yes |
date | int | Yes |
file_hash | bytes | Yes |
secret | bytes | Yes |
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'}