Optionalbuffer: Buffer<ArrayBufferLike>Optionalbufferin case of the no path a buffer can instead be passed instead to upload.
The name of the file to be uploaded. This is what will be shown in telegram
The full path on the system to where the file is. this will be used to read the file from.
Can be left empty to use a buffer instead
The size of the file. this should be the exact size to not lose any information
A custom file class compatible with File-like upload shape.
You should use this whenever you want to upload a file.