Skip to main content

upload_encrypted_file

Function upload_encrypted_file 

Source
pub async fn upload_encrypted_file<T: E2eTransport>(
    client: &T,
    ciphertext: &[u8],
    key_fingerprint: i32,
) -> Result<InputEncryptedFile, E2eError>
Expand description

Upload ciphertext to Telegram’s file servers.

Returns the InputEncryptedFile reference to pass to messages.sendEncryptedFile. key_fingerprint is computed by crypto::file_key_fingerprint.

If any part fails the whole upload must restart from part 0 (no resume).