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

# ListMessage

> Protobuf class ListMessage generated from WAProto.

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

## Implements

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

## Constructors

### new ListMessage()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### buttonText?

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

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`buttonText`](/proto-reference/Message/interfaces/IListMessage#buttontext)

***

### contextInfo?

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

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`contextInfo`](/proto-reference/Message/interfaces/IListMessage#contextinfo)

***

### description?

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

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`description`](/proto-reference/Message/interfaces/IListMessage#description)

***

### footerText?

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

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`footerText`](/proto-reference/Message/interfaces/IListMessage#footertext)

***

### listType?

> `optional` **listType**: `null` | [`ListType`](/proto-reference/Message/ListMessage/enumerations/ListType)

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`listType`](/proto-reference/Message/interfaces/IListMessage#listtype)

***

### productListInfo?

> `optional` **productListInfo**: `null` | [`IProductListInfo`](/proto-reference/Message/ListMessage/interfaces/IProductListInfo)

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`productListInfo`](/proto-reference/Message/interfaces/IListMessage#productlistinfo)

***

### sections

> **sections**: [`ISection`](/proto-reference/Message/ListMessage/interfaces/ISection)\[]

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`sections`](/proto-reference/Message/interfaces/IListMessage#sections)

***

### title?

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

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

#### Implementation of

[`IListMessage`](/proto-reference/Message/interfaces/IListMessage).[`title`](/proto-reference/Message/interfaces/IListMessage#title)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
