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

# MessageHistoryBundle

> Protobuf class MessageHistoryBundle generated from WAProto.

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

## Implements

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

## Constructors

### new MessageHistoryBundle()

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

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

#### Parameters

##### p?

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle)

#### Returns

[`MessageHistoryBundle`](/proto-reference/Message/classes/MessageHistoryBundle)

## Properties

### contextInfo?

> `optional` **contextInfo**: `null` | [`IContextInfo`](/proto-reference/interfaces/IContextInfo)

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`contextInfo`](/proto-reference/Message/interfaces/IMessageHistoryBundle#contextinfo)

***

### directPath?

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

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`directPath`](/proto-reference/Message/interfaces/IMessageHistoryBundle#directpath)

***

### fileEncSha256?

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

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`fileEncSha256`](/proto-reference/Message/interfaces/IMessageHistoryBundle#fileencsha256)

***

### fileSha256?

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

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`fileSha256`](/proto-reference/Message/interfaces/IMessageHistoryBundle#filesha256)

***

### mediaKey?

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

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`mediaKey`](/proto-reference/Message/interfaces/IMessageHistoryBundle#mediakey)

***

### mediaKeyTimestamp?

> `optional` **mediaKeyTimestamp**: `null` | `number` | `Long`

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`mediaKeyTimestamp`](/proto-reference/Message/interfaces/IMessageHistoryBundle#mediakeytimestamp)

***

### messageHistoryMetadata?

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

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`messageHistoryMetadata`](/proto-reference/Message/interfaces/IMessageHistoryBundle#messagehistorymetadata)

***

### mimetype?

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

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

#### Implementation of

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle).[`mimetype`](/proto-reference/Message/interfaces/IMessageHistoryBundle#mimetype)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle)

#### Returns

[`MessageHistoryBundle`](/proto-reference/Message/classes/MessageHistoryBundle)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`MessageHistoryBundle`](/proto-reference/Message/classes/MessageHistoryBundle)

***

### encode()

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

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

#### Parameters

##### m

[`IMessageHistoryBundle`](/proto-reference/Message/interfaces/IMessageHistoryBundle)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`MessageHistoryBundle`](/proto-reference/Message/classes/MessageHistoryBundle)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`MessageHistoryBundle`](/proto-reference/Message/classes/MessageHistoryBundle)

##### o?

`IConversionOptions`

#### Returns

`object`
