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: string
bot token, use bot
options
ts
options?: FilesPluginOptions
optional configuration
Return Type
ts
Transformer<R>