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

# encodeWAM

> Function encodeWAM in the Baileys API.

> **encodeWAM**(`binaryInfo`): `Buffer`\<`ArrayBuffer`>

Defined in: [src/WAM/encode.ts:15](https://github.com/WhiskeySockets/Baileys/blob/master/src/WAM/encode.ts#L15)

## Parameters

### binaryInfo

[`BinaryInfo`](/api-reference/classes/BinaryInfo)

## Returns

`Buffer`\<`ArrayBuffer`>
