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

# KeepInChatMessage

> Protobuf class KeepInChatMessage generated from WAProto.

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

## Implements

* [`IKeepInChatMessage`](/proto-reference/Message/interfaces/IKeepInChatMessage)

## Constructors

### new KeepInChatMessage()

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

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

#### Parameters

##### p?

[`IKeepInChatMessage`](/proto-reference/Message/interfaces/IKeepInChatMessage)

#### Returns

[`KeepInChatMessage`](/proto-reference/Message/classes/KeepInChatMessage)

## Properties

### keepType?

> `optional` **keepType**: `null` | [`KeepType`](/proto-reference/enumerations/KeepType)

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

#### Implementation of

[`IKeepInChatMessage`](/proto-reference/Message/interfaces/IKeepInChatMessage).[`keepType`](/proto-reference/Message/interfaces/IKeepInChatMessage#keeptype)

***

### key?

> `optional` **key**: `null` | [`IMessageKey`](/proto-reference/interfaces/IMessageKey)

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

#### Implementation of

[`IKeepInChatMessage`](/proto-reference/Message/interfaces/IKeepInChatMessage).[`key`](/proto-reference/Message/interfaces/IKeepInChatMessage#key)

***

### timestampMs?

> `optional` **timestampMs**: `null` | `number` | `Long`

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

#### Implementation of

[`IKeepInChatMessage`](/proto-reference/Message/interfaces/IKeepInChatMessage).[`timestampMs`](/proto-reference/Message/interfaces/IKeepInChatMessage#timestampms)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IKeepInChatMessage`](/proto-reference/Message/interfaces/IKeepInChatMessage)

#### Returns

[`KeepInChatMessage`](/proto-reference/Message/classes/KeepInChatMessage)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`KeepInChatMessage`](/proto-reference/Message/classes/KeepInChatMessage)

***

### encode()

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

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

#### Parameters

##### m

[`IKeepInChatMessage`](/proto-reference/Message/interfaces/IKeepInChatMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`KeepInChatMessage`](/proto-reference/Message/classes/KeepInChatMessage)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`KeepInChatMessage`](/proto-reference/Message/classes/KeepInChatMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
