• Normalize a InputFileLike to InputFile, uploading it if needed.

    Parameters

    • client: ITelegramClient
    • input: InputFileLike
    • params: {
          fileMime?: string;
          fileName?: string;
          fileSize?: number;
          progressCallback?: (uploaded: number, total: number) => void;
      }

    Returns Promise<tl.TypeInputFile>