messages.uploadEncryptedFile #

Upload encrypted file and associate it to a secret chat (without actually sending it to the chat).

Layer 223

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

Parameters #

NameTypeDescription
peerInputEncryptedChatThe secret chat to associate the file to
fileInputEncryptedFileThe file

Result #

EncryptedFile

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid.