import { InputFile } from "https://dotland.deno.dev/x/grammy@v1.31.0/mod.ts";
An InputFile
wraps a number of different sources for sending
files.
It corresponds to the InputFile
type in the Telegram Bot API
Reference.
Properties
Optional name of the constructed InputFile
instance.
Check out the
documentation
on sending files with InputFile
.
Methods
private
guessFilename(file: ConstructorParameters<InputFile>[0]): string | undefinedtoRaw(): Promise<Uint8Array | Iterable<Uint8Array> | AsyncIterable<Uint8Array>>
Internal method. Do not use.
Converts this instance into a binary representation that can be sent to the Bot API server in the request body.