import { hydrateFiles } from "https://deno.land/x/grammy_files@v1.1.1/mod.ts";
Plugin that hydrates results to getFile
, and equips the results with
methods to download files, or get their URL/path.
This plugin is an API transformer
function that can be
installed on bot.api
.
bot.api.config.use(hydrateFiles(bot.token))
Check out the official plugin documentation on the grammY website.