> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# downloadContentFromMessage

> Function downloadContentFromMessage in the Baileys API.

> **downloadContentFromMessage**(`__namedParameters`, `type`, `opts`): `Promise`\<`Transform`>

Defined in: [src/Utils/messages-media.ts:531](https://github.com/WhiskeySockets/Baileys/blob/master/src/Utils/messages-media.ts#L531)

## Parameters

### \_\_namedParameters

[`DownloadableMessage`](/api-reference/type-aliases/DownloadableMessage)

### type

`"ppic"` | `"product"` | `"image"` | `"video"` | `"sticker"` | `"thumbnail-document"` | `"audio"` | `"thumbnail-image"` | `"biz-cover-photo"` | `"thumbnail-video"` | `"thumbnail-link"` | `"gif"` | `"md-app-state"` | `"md-msg-hist"` | `"document"` | `"ptt"` | `"product-catalog-image"` | `"payment-bg-image"` | `"ptv"`

### opts

[`MediaDownloadOptions`](/api-reference/type-aliases/MediaDownloadOptions) = `{}`

## Returns

`Promise`\<`Transform`>
