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

# MarketingMessageAction

> Protobuf class MarketingMessageAction generated from WAProto.

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

## Implements

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

## Constructors

### new MarketingMessageAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### createdAt?

> `optional` **createdAt**: `null` | `number` | `Long`

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

#### Implementation of

[`IMarketingMessageAction`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction).[`createdAt`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction#createdat)

***

### isDeleted?

> `optional` **isDeleted**: `null` | `boolean`

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

#### Implementation of

[`IMarketingMessageAction`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction).[`isDeleted`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction#isdeleted)

***

### lastSentAt?

> `optional` **lastSentAt**: `null` | `number` | `Long`

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

#### Implementation of

[`IMarketingMessageAction`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction).[`lastSentAt`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction#lastsentat)

***

### mediaId?

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

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

#### Implementation of

[`IMarketingMessageAction`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction).[`mediaId`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction#mediaid)

***

### message?

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

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

#### Implementation of

[`IMarketingMessageAction`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction).[`message`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction#message)

***

### name?

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

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

#### Implementation of

[`IMarketingMessageAction`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction).[`name`](/proto-reference/SyncActionValue/interfaces/IMarketingMessageAction#name)

***

### type?

> `optional` **type**: `null` | [`PERSONALIZED`](/proto-reference/SyncActionValue/MarketingMessageAction/enumerations/MarketingMessagePrototypeType#personalized)

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

#### Implementation of

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

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
