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

# CtwaContextData

> Protobuf class CtwaContextData generated from WAProto.

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

## Implements

* [`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData)

## Constructors

### new CtwaContextData()

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

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

#### Parameters

##### p?

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData)

#### Returns

[`CtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/classes/CtwaContextData)

## Properties

### conversionData?

> `optional` **conversionData**: `null` | `Uint8Array`\<`ArrayBufferLike`>

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`conversionData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#conversiondata)

***

### conversionSource?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`conversionSource`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#conversionsource)

***

### description?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`description`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#description)

***

### isSuspiciousLink?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`isSuspiciousLink`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#issuspiciouslink)

***

### mediaType?

> `optional` **mediaType**: `null` | [`ContextInfoExternalAdReplyInfoMediaType`](/proto-reference/ChatRowOpaqueData/DraftMessage/CtwaContextData/enumerations/ContextInfoExternalAdReplyInfoMediaType)

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`mediaType`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#mediatype)

***

### mediaUrl?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`mediaUrl`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#mediaurl)

***

### sourceId?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`sourceId`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#sourceid)

***

### sourceType?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`sourceType`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#sourcetype)

***

### sourceUrl?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`sourceUrl`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#sourceurl)

***

### thumbnail?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`thumbnail`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#thumbnail)

***

### thumbnailUrl?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`thumbnailUrl`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#thumbnailurl)

***

### title?

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

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

#### Implementation of

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData).[`title`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData#title)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData)

#### Returns

[`CtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/classes/CtwaContextData)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`CtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/classes/CtwaContextData)

***

### encode()

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

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

#### Parameters

##### m

[`ICtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/interfaces/ICtwaContextData)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`CtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/classes/CtwaContextData)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`CtwaContextData`](/proto-reference/ChatRowOpaqueData/DraftMessage/classes/CtwaContextData)

##### o?

`IConversionOptions`

#### Returns

`object`
