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

# InteractiveMessageAction

> Protobuf class InteractiveMessageAction generated from WAProto.

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

## Implements

* [`IInteractiveMessageAction`](/proto-reference/SyncActionValue/interfaces/IInteractiveMessageAction)

## Constructors

### new InteractiveMessageAction()

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

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

#### Parameters

##### p?

[`IInteractiveMessageAction`](/proto-reference/SyncActionValue/interfaces/IInteractiveMessageAction)

#### Returns

[`InteractiveMessageAction`](/proto-reference/SyncActionValue/classes/InteractiveMessageAction)

## Properties

### type

> **type**: [`DISABLE_CTA`](/proto-reference/SyncActionValue/InteractiveMessageAction/enumerations/InteractiveMessageActionMode#disable_cta)

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

#### Implementation of

[`IInteractiveMessageAction`](/proto-reference/SyncActionValue/interfaces/IInteractiveMessageAction).[`type`](/proto-reference/SyncActionValue/interfaces/IInteractiveMessageAction#type)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IInteractiveMessageAction`](/proto-reference/SyncActionValue/interfaces/IInteractiveMessageAction)

#### Returns

[`InteractiveMessageAction`](/proto-reference/SyncActionValue/classes/InteractiveMessageAction)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`InteractiveMessageAction`](/proto-reference/SyncActionValue/classes/InteractiveMessageAction)

***

### encode()

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

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

#### Parameters

##### m

[`IInteractiveMessageAction`](/proto-reference/SyncActionValue/interfaces/IInteractiveMessageAction)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`InteractiveMessageAction`](/proto-reference/SyncActionValue/classes/InteractiveMessageAction)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`InteractiveMessageAction`](/proto-reference/SyncActionValue/classes/InteractiveMessageAction)

##### o?

`IConversionOptions`

#### Returns

`object`
