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

# PollVoteMessage

> Protobuf class PollVoteMessage generated from WAProto.

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

## Implements

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

## Constructors

### new PollVoteMessage()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### selectedOptions

> **selectedOptions**: `Uint8Array`\<`ArrayBufferLike`>\[]

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

#### Implementation of

[`IPollVoteMessage`](/proto-reference/Message/interfaces/IPollVoteMessage).[`selectedOptions`](/proto-reference/Message/interfaces/IPollVoteMessage#selectedoptions)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
