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

# PollVote

> Protobuf class PollVote generated from WAProto.

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

## Implements

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

## Constructors

### new PollVote()

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

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

#### Parameters

##### p?

[`IPollVote`](/proto-reference/Message/PollResultSnapshotMessage/interfaces/IPollVote)

#### Returns

[`PollVote`](/proto-reference/Message/PollResultSnapshotMessage/classes/PollVote)

## Properties

### optionName?

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

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

#### Implementation of

[`IPollVote`](/proto-reference/Message/PollResultSnapshotMessage/interfaces/IPollVote).[`optionName`](/proto-reference/Message/PollResultSnapshotMessage/interfaces/IPollVote#optionname)

***

### optionVoteCount?

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

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

#### Implementation of

[`IPollVote`](/proto-reference/Message/PollResultSnapshotMessage/interfaces/IPollVote).[`optionVoteCount`](/proto-reference/Message/PollResultSnapshotMessage/interfaces/IPollVote#optionvotecount)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IPollVote`](/proto-reference/Message/PollResultSnapshotMessage/interfaces/IPollVote)

#### Returns

[`PollVote`](/proto-reference/Message/PollResultSnapshotMessage/classes/PollVote)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`PollVote`](/proto-reference/Message/PollResultSnapshotMessage/classes/PollVote)

***

### encode()

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

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

#### Parameters

##### m

[`IPollVote`](/proto-reference/Message/PollResultSnapshotMessage/interfaces/IPollVote)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`PollVote`](/proto-reference/Message/PollResultSnapshotMessage/classes/PollVote)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`PollVote`](/proto-reference/Message/PollResultSnapshotMessage/classes/PollVote)

##### o?

`IConversionOptions`

#### Returns

`object`
