Describes a file uploaded to the Telegram servers using TelegramClient.uploadFile method.

interface UploadedFile {
    inputFile: TypeInputFile;
    mime: string;
    size: number;
}

Properties

Properties

inputFile: TypeInputFile

Raw TL input file to be used in other methods.

Very low-level stuff, usually you shouldn't care about it.

mime: string

File MIME type, either the one passed or the one derived from file contents.

size: number

File size in bytes