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