Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/types/0_file_source.ts>FileSource

Cross-runtime JavaScript library for building Telegram clients
Latest
type alias FileSource
import { type FileSource } from "https://deno.land/x/mtkruto@0.6.3/types/0_file_source.ts";

Source to a file. Can be a file ID, a file path, URL, a Uint8Array, a potentially async Uint8Array iterator, or a readable stream of Uint8Array, unless otherwise noted.

definition:
| string
| URL
| Uint8Array
| Iterable<Uint8Array>
| AsyncIterable<Uint8Array>
| ReadableStream<Uint8Array>