> ## 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:6986](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6986)

## Implements

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

## Constructors

### new Body()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### format?

> `optional` **format**: `null` | [`Format`](/proto-reference/Message/InteractiveResponseMessage/Body/enumerations/Format)

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

#### Implementation of

[`IBody`](/proto-reference/Message/InteractiveResponseMessage/interfaces/IBody).[`format`](/proto-reference/Message/InteractiveResponseMessage/interfaces/IBody#format)

***

### text?

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

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

#### Implementation of

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

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
