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

# PinInChatMessage

> Protobuf class PinInChatMessage generated from WAProto.

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

## Implements

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

## Constructors

### new PinInChatMessage()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### key?

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

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

#### Implementation of

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

***

### senderTimestampMs?

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

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

#### Implementation of

[`IPinInChatMessage`](/proto-reference/Message/interfaces/IPinInChatMessage).[`senderTimestampMs`](/proto-reference/Message/interfaces/IPinInChatMessage#sendertimestampms)

***

### type?

> `optional` **type**: `null` | [`Type`](/proto-reference/Message/PinInChatMessage/enumerations/Type)

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

#### Implementation of

[`IPinInChatMessage`](/proto-reference/Message/interfaces/IPinInChatMessage).[`type`](/proto-reference/Message/interfaces/IPinInChatMessage#type)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
