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

# HistorySyncConfig

> Protobuf class HistorySyncConfig generated from WAProto.

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

## Implements

* [`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig)

## Constructors

### new HistorySyncConfig()

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

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

#### Parameters

##### p?

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig)

#### Returns

[`HistorySyncConfig`](/proto-reference/DeviceProps/classes/HistorySyncConfig)

## Properties

### completeOnDemandReady?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`completeOnDemandReady`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#completeondemandready)

***

### fullSyncDaysLimit?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`fullSyncDaysLimit`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#fullsyncdayslimit)

***

### fullSyncSizeMbLimit?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`fullSyncSizeMbLimit`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#fullsyncsizemblimit)

***

### inlineInitialPayloadInE2EeMsg?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`inlineInitialPayloadInE2EeMsg`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#inlineinitialpayloadine2eemsg)

***

### onDemandReady?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`onDemandReady`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#ondemandready)

***

### recentSyncDaysLimit?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`recentSyncDaysLimit`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#recentsyncdayslimit)

***

### storageQuotaMb?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`storageQuotaMb`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#storagequotamb)

***

### supportAddOnHistorySyncMigration?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportAddOnHistorySyncMigration`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportaddonhistorysyncmigration)

***

### supportBizHostedMsg?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportBizHostedMsg`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportbizhostedmsg)

***

### supportBotUserAgentChatHistory?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportBotUserAgentChatHistory`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportbotuseragentchathistory)

***

### supportCagReactionsAndPolls?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportCagReactionsAndPolls`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportcagreactionsandpolls)

***

### supportCallLogHistory?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportCallLogHistory`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportcallloghistory)

***

### supportFbidBotChatHistory?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportFbidBotChatHistory`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportfbidbotchathistory)

***

### supportGroupHistory?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportGroupHistory`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportgrouphistory)

***

### supportGuestChat?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportGuestChat`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportguestchat)

***

### supportHostedGroupMsg?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportHostedGroupMsg`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supporthostedgroupmsg)

***

### supportMessageAssociation?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportMessageAssociation`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportmessageassociation)

***

### supportRecentSyncChunkMessageCountTuning?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`supportRecentSyncChunkMessageCountTuning`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#supportrecentsyncchunkmessagecounttuning)

***

### thumbnailSyncDaysLimit?

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

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

#### Implementation of

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig).[`thumbnailSyncDaysLimit`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig#thumbnailsyncdayslimit)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig)

#### Returns

[`HistorySyncConfig`](/proto-reference/DeviceProps/classes/HistorySyncConfig)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`HistorySyncConfig`](/proto-reference/DeviceProps/classes/HistorySyncConfig)

***

### encode()

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

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

#### Parameters

##### m

[`IHistorySyncConfig`](/proto-reference/DeviceProps/interfaces/IHistorySyncConfig)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`HistorySyncConfig`](/proto-reference/DeviceProps/classes/HistorySyncConfig)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`HistorySyncConfig`](/proto-reference/DeviceProps/classes/HistorySyncConfig)

##### o?

`IConversionOptions`

#### Returns

`object`
