MadelineProtoDocs/docs/API_docs/constructors/upload_fileCdnRedirect.md
2018-04-19 17:56:40 +00:00

1.4 KiB

title description image
upload.fileCdnRedirect upload_fileCdnRedirect attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: upload.fileCdnRedirect

Back to constructors index

Attributes:

Name Type Required
dc_id int Yes
file_token bytes Yes
encryption_key bytes Yes
encryption_iv bytes Yes
cdn_file_hashes Array of CdnFileHash Yes

Type: upload_File

Example:

$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash, CdnFileHash]];

PWRTelegram json-encoded version:

{"_": "upload.fileCdnRedirect", "dc_id": int, "file_token": {"_": "bytes", "bytes":"base64 encoded bytes"}, "encryption_key": {"_": "bytes", "bytes":"base64 encoded bytes"}, "encryption_iv": {"_": "bytes", "bytes":"base64 encoded bytes"}, "cdn_file_hashes": [CdnFileHash]}

Or, if you're into Lua:

upload_fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes', cdn_file_hashes={CdnFileHash}}