telegramx.js

fileFrom

function

Build an from a local path (filename inferred) or explicit bytes.

Declaration

declare function fileFrom(source: string | Buffer | Blob | Readable, name?: string): UploadableFile;