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

# UnarchiveChatsSetting

> Protobuf class UnarchiveChatsSetting generated from WAProto.

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

## Implements

* [`IUnarchiveChatsSetting`](/proto-reference/SyncActionValue/interfaces/IUnarchiveChatsSetting)

## Constructors

### new UnarchiveChatsSetting()

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

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

#### Parameters

##### p?

[`IUnarchiveChatsSetting`](/proto-reference/SyncActionValue/interfaces/IUnarchiveChatsSetting)

#### Returns

[`UnarchiveChatsSetting`](/proto-reference/SyncActionValue/classes/UnarchiveChatsSetting)

## Properties

### unarchiveChats?

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

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

#### Implementation of

[`IUnarchiveChatsSetting`](/proto-reference/SyncActionValue/interfaces/IUnarchiveChatsSetting).[`unarchiveChats`](/proto-reference/SyncActionValue/interfaces/IUnarchiveChatsSetting#unarchivechats)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IUnarchiveChatsSetting`](/proto-reference/SyncActionValue/interfaces/IUnarchiveChatsSetting)

#### Returns

[`UnarchiveChatsSetting`](/proto-reference/SyncActionValue/classes/UnarchiveChatsSetting)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`UnarchiveChatsSetting`](/proto-reference/SyncActionValue/classes/UnarchiveChatsSetting)

***

### encode()

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

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

#### Parameters

##### m

[`IUnarchiveChatsSetting`](/proto-reference/SyncActionValue/interfaces/IUnarchiveChatsSetting)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`UnarchiveChatsSetting`](/proto-reference/SyncActionValue/classes/UnarchiveChatsSetting)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`UnarchiveChatsSetting`](/proto-reference/SyncActionValue/classes/UnarchiveChatsSetting)

##### o?

`IConversionOptions`

#### Returns

`object`
