upload_encrypted_file()¶
- async Client.upload_encrypted_file()¶
Upload an encrypted file to a secret chat.
Usable by Users Bots- Parameters:
peer (
InputEncryptedChat) – The secret chat to upload the file for.file (
InputEncryptedFile) – The encrypted file to upload.
- Returns:
EncryptedFile– The uploaded encrypted file.
Example
enc_file = await app.upload_encrypted_file(peer, file=input_enc_file)