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

# TemplateButtonReplyMessage

> Protobuf class TemplateButtonReplyMessage generated from WAProto.

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

## Implements

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

## Constructors

### new TemplateButtonReplyMessage()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### contextInfo?

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

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

#### Implementation of

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

***

### selectedCarouselCardIndex?

> `optional` **selectedCarouselCardIndex**: `null` | `number`

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

#### Implementation of

[`ITemplateButtonReplyMessage`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage).[`selectedCarouselCardIndex`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage#selectedcarouselcardindex)

***

### selectedDisplayText?

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

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

#### Implementation of

[`ITemplateButtonReplyMessage`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage).[`selectedDisplayText`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage#selecteddisplaytext)

***

### selectedId?

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

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

#### Implementation of

[`ITemplateButtonReplyMessage`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage).[`selectedId`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage#selectedid)

***

### selectedIndex?

> `optional` **selectedIndex**: `null` | `number`

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

#### Implementation of

[`ITemplateButtonReplyMessage`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage).[`selectedIndex`](/proto-reference/Message/interfaces/ITemplateButtonReplyMessage#selectedindex)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
