messages.uploadEncryptedFile

Upload encrypted file and associate it to a secret chat

encryptedFileEmpty#c21f497e = EncryptedFile;
encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile;
---functions---
messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;

Parameters

Name Type Description
peer InputEncryptedChat The secret chat to associate the file to
file InputEncryptedFile The file

Result

EncryptedFile

Possible errors

Code Type Description
400 CHAT_ID_INVALID The provided chat id is invalid.