Function _normalizeInputFile
- _normalizeInputFile(
client: ITelegramClient,
input: InputFileLike,
params: {
fileMime?: string;
fileName?: string;
fileSize?: number;
progressCallback?: (uploaded: number, total: number) => void;
},
): Promise<tl.TypeInputFile> Parameters
- client: ITelegramClient
- input: InputFileLike
- params: {
fileMime?: string;
fileName?: string;
fileSize?: number;
progressCallback?: (uploaded: number, total: number) => void;
}
Normalize a InputFileLike to
InputFile
, uploading it if needed.