Skip to content

GramIO API Reference / @gramio/files/dist / FileDownloadResolver

Type Alias: FileDownloadResolver

FileDownloadResolver = () => Promise<{ file: TelegramFile; source: FileDownloadSource; }>

Defined in: files/index.d.ts:141

Lazily resolves the file metadata + where to read it from.

Returns

Promise<{ file: TelegramFile; source: FileDownloadSource; }>