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

# SenderKeyDistributionMessage

> Protobuf class SenderKeyDistributionMessage generated from WAProto.

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

## Implements

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

## Constructors

### new SenderKeyDistributionMessage()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### axolotlSenderKeyDistributionMessage?

> `optional` **axolotlSenderKeyDistributionMessage**: `null` | `Uint8Array`\<`ArrayBufferLike`>

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

#### Implementation of

[`ISenderKeyDistributionMessage`](/proto-reference/Message/interfaces/ISenderKeyDistributionMessage).[`axolotlSenderKeyDistributionMessage`](/proto-reference/Message/interfaces/ISenderKeyDistributionMessage#axolotlsenderkeydistributionmessage)

***

### groupId?

> `optional` **groupId**: `null` | `string`

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

#### Implementation of

[`ISenderKeyDistributionMessage`](/proto-reference/Message/interfaces/ISenderKeyDistributionMessage).[`groupId`](/proto-reference/Message/interfaces/ISenderKeyDistributionMessage#groupid)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
