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

# ClearChatAction

> Protobuf class ClearChatAction generated from WAProto.

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

## Implements

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

## Constructors

### new ClearChatAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### messageRange?

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

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

#### Implementation of

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

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
