hydrateFiles
Plugin that hydrates results to get, 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.
ts
bot.api.config.use(hydrateFiles(bot.token))Check out the official plugin documentation on the grammY website.
Type Parameters
R
Parameters
token
ts
token: stringbot token, use bot
options
ts
options?: FilesPluginOptionsoptional configuration
Return Type
ts
Transformer<R>