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

# PollCreationMessage

> Protobuf class PollCreationMessage generated from WAProto.

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

## Implements

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

## Constructors

### new PollCreationMessage()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### contextInfo?

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

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

#### Implementation of

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

***

### correctAnswer?

> `optional` **correctAnswer**: `null` | [`IOption`](/proto-reference/Message/PollCreationMessage/interfaces/IOption)

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

#### Implementation of

[`IPollCreationMessage`](/proto-reference/Message/interfaces/IPollCreationMessage).[`correctAnswer`](/proto-reference/Message/interfaces/IPollCreationMessage#correctanswer)

***

### encKey?

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

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

#### Implementation of

[`IPollCreationMessage`](/proto-reference/Message/interfaces/IPollCreationMessage).[`encKey`](/proto-reference/Message/interfaces/IPollCreationMessage#enckey)

***

### name?

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

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

#### Implementation of

[`IPollCreationMessage`](/proto-reference/Message/interfaces/IPollCreationMessage).[`name`](/proto-reference/Message/interfaces/IPollCreationMessage#name)

***

### options

> **options**: [`IOption`](/proto-reference/Message/PollCreationMessage/interfaces/IOption)\[]

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

#### Implementation of

[`IPollCreationMessage`](/proto-reference/Message/interfaces/IPollCreationMessage).[`options`](/proto-reference/Message/interfaces/IPollCreationMessage#options)

***

### pollContentType?

> `optional` **pollContentType**: `null` | [`PollContentType`](/proto-reference/Message/enumerations/PollContentType)

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

#### Implementation of

[`IPollCreationMessage`](/proto-reference/Message/interfaces/IPollCreationMessage).[`pollContentType`](/proto-reference/Message/interfaces/IPollCreationMessage#pollcontenttype)

***

### pollType?

> `optional` **pollType**: `null` | [`PollType`](/proto-reference/Message/enumerations/PollType)

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

#### Implementation of

[`IPollCreationMessage`](/proto-reference/Message/interfaces/IPollCreationMessage).[`pollType`](/proto-reference/Message/interfaces/IPollCreationMessage#polltype)

***

### selectableOptionsCount?

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

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

#### Implementation of

[`IPollCreationMessage`](/proto-reference/Message/interfaces/IPollCreationMessage).[`selectableOptionsCount`](/proto-reference/Message/interfaces/IPollCreationMessage#selectableoptionscount)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
