UploadEncryptedFileRequest
Only users can use this request. See code examples.
---functions--- messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile
Returns
| EncryptedFile | 
This type can be an instance of either:
| EncryptedFile | EncryptedFileEmpty | 
Parameters
| peer | InputEncryptedChat | |
| file | InputEncryptedFile | 
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.messages.UploadEncryptedFileRequest(
        peer=types.InputEncryptedChat(
            chat_id=478614198,
            access_hash=-12398745604826
        ),
        file=types.InputEncryptedFileUploaded(
            id=-12398745604826,
            parts=42,
            md5_checksum='some string here',
            key_fingerprint=42
        )
    ))
    print(result.stringify())