Interface InputFileGenerated

A file generated by the application. The application must handle updates updateFileGenerationStart and updateFileGenerationStop to generate the file when asked by TDLib. Subtype of InputFile.

interface InputFileGenerated {
    @type: "inputFileGenerated";
    conversion: string;
    expected_size: number;
    original_path: string;
}

Properties

@type: "inputFileGenerated"
conversion: string

String specifying the conversion applied to the original file; must be persistent across application restarts. Conversions beginning with '#' are reserved for internal TDLib usage.

expected_size: number

Expected size of the generated file, in bytes; pass 0 if unknown.

original_path: string

Local path to a file from which the file is generated. The path doesn't have to be a valid path and is used by TDLib only to detect name and MIME type of the generated file.