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

# Header

> Protobuf class Header generated from WAProto.

Defined in: [WAProto/index.d.ts:6865](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6865)

## Implements

* [`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader)

## Constructors

### new Header()

> **new Header**(`p`?): [`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

Defined in: [WAProto/index.d.ts:6866](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6866)

#### Parameters

##### p?

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader)

#### Returns

[`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

## Properties

### documentMessage?

> `optional` **documentMessage**: `null` | [`IDocumentMessage`](/proto-reference/Message/interfaces/IDocumentMessage)

Defined in: [WAProto/index.d.ts:6870](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6870)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`documentMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#documentmessage)

***

### hasMediaAttachment?

> `optional` **hasMediaAttachment**: `null` | `boolean`

Defined in: [WAProto/index.d.ts:6869](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6869)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`hasMediaAttachment`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#hasmediaattachment)

***

### imageMessage?

> `optional` **imageMessage**: `null` | [`IImageMessage`](/proto-reference/Message/interfaces/IImageMessage)

Defined in: [WAProto/index.d.ts:6871](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6871)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`imageMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#imagemessage)

***

### jpegThumbnail?

> `optional` **jpegThumbnail**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:6872](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6872)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`jpegThumbnail`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#jpegthumbnail)

***

### locationMessage?

> `optional` **locationMessage**: `null` | [`ILocationMessage`](/proto-reference/Message/interfaces/ILocationMessage)

Defined in: [WAProto/index.d.ts:6874](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6874)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`locationMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#locationmessage)

***

### media?

> `optional` **media**: `"imageMessage"` | `"locationMessage"` | `"documentMessage"` | `"videoMessage"` | `"productMessage"` | `"jpegThumbnail"`

Defined in: [WAProto/index.d.ts:6876](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6876)

***

### productMessage?

> `optional` **productMessage**: `null` | [`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage)

Defined in: [WAProto/index.d.ts:6875](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6875)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`productMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#productmessage)

***

### subtitle?

> `optional` **subtitle**: `null` | `string`

Defined in: [WAProto/index.d.ts:6868](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6868)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`subtitle`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#subtitle)

***

### title?

> `optional` **title**: `null` | `string`

Defined in: [WAProto/index.d.ts:6867](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6867)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`title`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#title)

***

### videoMessage?

> `optional` **videoMessage**: `null` | [`IVideoMessage`](/proto-reference/Message/interfaces/IVideoMessage)

Defined in: [WAProto/index.d.ts:6873](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6873)

#### Implementation of

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader).[`videoMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader#videomessage)

## Methods

### create()

> `static` **create**(`properties`?): [`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

Defined in: [WAProto/index.d.ts:6877](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6877)

#### Parameters

##### properties?

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader)

#### Returns

[`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

***

### decode()

> `static` **decode**(`r`, `l`?): [`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

Defined in: [WAProto/index.d.ts:6879](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6879)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:6878](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6878)

#### Parameters

##### m

[`IHeader`](/proto-reference/Message/InteractiveMessage/interfaces/IHeader)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

Defined in: [WAProto/index.d.ts:6880](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6880)

#### Parameters

##### d

#### Returns

[`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:6883](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6883)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:6882](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6882)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:6881](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6881)

#### Parameters

##### m

[`Header`](/proto-reference/Message/InteractiveMessage/classes/Header)

##### o?

`IConversionOptions`

#### Returns

`object`
