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

# Body

> Protobuf class Body generated from WAProto.

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

## Implements

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

## Constructors

### new Body()

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

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

#### Parameters

##### p?

[`IBody`](/proto-reference/Message/InteractiveMessage/interfaces/IBody)

#### Returns

[`Body`](/proto-reference/Message/InteractiveMessage/classes/Body)

## Properties

### text?

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

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

#### Implementation of

[`IBody`](/proto-reference/Message/InteractiveMessage/interfaces/IBody).[`text`](/proto-reference/Message/InteractiveMessage/interfaces/IBody#text)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IBody`](/proto-reference/Message/InteractiveMessage/interfaces/IBody)

#### Returns

[`Body`](/proto-reference/Message/InteractiveMessage/classes/Body)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`Body`](/proto-reference/Message/InteractiveMessage/classes/Body)

***

### encode()

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

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

#### Parameters

##### m

[`IBody`](/proto-reference/Message/InteractiveMessage/interfaces/IBody)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`Body`](/proto-reference/Message/InteractiveMessage/classes/Body)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`Body`](/proto-reference/Message/InteractiveMessage/classes/Body)

##### o?

`IConversionOptions`

#### Returns

`object`
