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

# ArchiveChatAction

> Protobuf class ArchiveChatAction generated from WAProto.

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

## Implements

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

## Constructors

### new ArchiveChatAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### archived?

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

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

#### Implementation of

[`IArchiveChatAction`](/proto-reference/SyncActionValue/interfaces/IArchiveChatAction).[`archived`](/proto-reference/SyncActionValue/interfaces/IArchiveChatAction#archived)

***

### messageRange?

> `optional` **messageRange**: `null` | [`ISyncActionMessageRange`](/proto-reference/SyncActionValue/interfaces/ISyncActionMessageRange)

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

#### Implementation of

[`IArchiveChatAction`](/proto-reference/SyncActionValue/interfaces/IArchiveChatAction).[`messageRange`](/proto-reference/SyncActionValue/interfaces/IArchiveChatAction#messagerange)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
