Describes types that can be used in TelegramClient.uploadFile method. Can be one of:
Uint8Array
Buffer
File
Blob
string
URL
fetch()
file://
ReadStream
node:fs
BunFile
Bun.file()
Deno.FsFile
Deno.open()
ReadableStream
Readable
Response
window.fetch
Describes types that can be used in TelegramClient.uploadFile method. Can be one of:
Uint8Array
/Buffer
, which will be interpreted as raw file contentsFile
,Blob
(from the Web API)string
, which will be interpreted as file path (non-browser only!)URL
(from the Web API, will befetch()
-ed;file://
URLs are not available in browsers)ReadStream
(for Node.js/Bun, from thenode:fs
module)BunFile
(fromBun.file()
)Deno.FsFile
(fromDeno.open()
in Deno)ReadableStream
(Web API readable stream)Readable
(Node.js/Bun readable stream)Response
(fromwindow.fetch
)