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

# BotPromptSuggestion

> Protobuf class BotPromptSuggestion generated from WAProto.

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

## Implements

* [`IBotPromptSuggestion`](/proto-reference/interfaces/IBotPromptSuggestion)

## Constructors

### new BotPromptSuggestion()

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

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

#### Parameters

##### p?

[`IBotPromptSuggestion`](/proto-reference/interfaces/IBotPromptSuggestion)

#### Returns

[`BotPromptSuggestion`](/proto-reference/classes/BotPromptSuggestion)

## Properties

### prompt?

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

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

#### Implementation of

[`IBotPromptSuggestion`](/proto-reference/interfaces/IBotPromptSuggestion).[`prompt`](/proto-reference/interfaces/IBotPromptSuggestion#prompt)

***

### promptId?

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

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

#### Implementation of

[`IBotPromptSuggestion`](/proto-reference/interfaces/IBotPromptSuggestion).[`promptId`](/proto-reference/interfaces/IBotPromptSuggestion#promptid)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IBotPromptSuggestion`](/proto-reference/interfaces/IBotPromptSuggestion)

#### Returns

[`BotPromptSuggestion`](/proto-reference/classes/BotPromptSuggestion)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`BotPromptSuggestion`](/proto-reference/classes/BotPromptSuggestion)

***

### encode()

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

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

#### Parameters

##### m

[`IBotPromptSuggestion`](/proto-reference/interfaces/IBotPromptSuggestion)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`BotPromptSuggestion`](/proto-reference/classes/BotPromptSuggestion)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`BotPromptSuggestion`](/proto-reference/classes/BotPromptSuggestion)

##### o?

`IConversionOptions`

#### Returns

`object`
