ctx.media is populated on first call via the provider’s downloader.
Resolves undefined when the message carries no media or (by default) the download fails.
Parameters
Returns
Promise<MediaPayload | undefined>Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Function exported by @botmesh/core.
function loadMediaOf(ctx, options?): Promise<MediaPayload | undefined>;
ctx.media is populated on first call via the provider’s downloader.
Resolves undefined when the message carries no media or (by default) the download fails.
| Parameter | Type |
|---|---|
ctx | MessageContext |
options? | LoadMediaOptions |
Promise<MediaPayload | undefined>