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

# MarkChatAsReadAction

> Protobuf class MarkChatAsReadAction generated from WAProto.

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

## Implements

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

## Constructors

### new MarkChatAsReadAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### messageRange?

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

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

#### Implementation of

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

***

### read?

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

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

#### Implementation of

[`IMarkChatAsReadAction`](/proto-reference/SyncActionValue/interfaces/IMarkChatAsReadAction).[`read`](/proto-reference/SyncActionValue/interfaces/IMarkChatAsReadAction#read)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
