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

# HistorySyncNotification

> Protobuf class HistorySyncNotification generated from WAProto.

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

## Implements

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

## Constructors

### new HistorySyncNotification()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### chunkOrder?

> `optional` **chunkOrder**: `null` | `number`

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`chunkOrder`](/proto-reference/Message/interfaces/IHistorySyncNotification#chunkorder)

***

### directPath?

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

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

#### Implementation of

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

***

### encHandle?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`encHandle`](/proto-reference/Message/interfaces/IHistorySyncNotification#enchandle)

***

### fileEncSha256?

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

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

#### Implementation of

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

***

### fileLength?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`fileLength`](/proto-reference/Message/interfaces/IHistorySyncNotification#filelength)

***

### fileSha256?

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

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

#### Implementation of

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

***

### fullHistorySyncOnDemandRequestMetadata?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`fullHistorySyncOnDemandRequestMetadata`](/proto-reference/Message/interfaces/IHistorySyncNotification#fullhistorysyncondemandrequestmetadata)

***

### initialHistBootstrapInlinePayload?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`initialHistBootstrapInlinePayload`](/proto-reference/Message/interfaces/IHistorySyncNotification#initialhistbootstrapinlinepayload)

***

### mediaKey?

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

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

#### Implementation of

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

***

### messageAccessStatus?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`messageAccessStatus`](/proto-reference/Message/interfaces/IHistorySyncNotification#messageaccessstatus)

***

### oldestMsgInChunkTimestampSec?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`oldestMsgInChunkTimestampSec`](/proto-reference/Message/interfaces/IHistorySyncNotification#oldestmsginchunktimestampsec)

***

### originalMessageId?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`originalMessageId`](/proto-reference/Message/interfaces/IHistorySyncNotification#originalmessageid)

***

### peerDataRequestSessionId?

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

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`peerDataRequestSessionId`](/proto-reference/Message/interfaces/IHistorySyncNotification#peerdatarequestsessionid)

***

### progress?

> `optional` **progress**: `null` | `number`

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`progress`](/proto-reference/Message/interfaces/IHistorySyncNotification#progress)

***

### syncType?

> `optional` **syncType**: `null` | [`HistorySyncType`](/proto-reference/Message/enumerations/HistorySyncType)

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

#### Implementation of

[`IHistorySyncNotification`](/proto-reference/Message/interfaces/IHistorySyncNotification).[`syncType`](/proto-reference/Message/interfaces/IHistorySyncNotification#synctype)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
