import { Context } from "https://dotland.deno.dev/x/grammy@v1.12.0/context.ts";
Context-aware alias for api.sendDocument
. Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
Parameters
document: InputFile | string
File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data.
Optional AbortSignal
to cancel the request
Official reference: https://core.telegram.org/bots/api#senddocument