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

# PollVoteSnapshot

> Protobuf class PollVoteSnapshot generated from WAProto.

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

## Implements

* [`IPollVoteSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot)

## Constructors

### new PollVoteSnapshot()

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

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

#### Parameters

##### p?

[`IPollVoteSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot)

#### Returns

[`PollVoteSnapshot`](/proto-reference/MsgOpaqueData/classes/PollVoteSnapshot)

## Properties

### option?

> `optional` **option**: `null` | [`IPollOption`](/proto-reference/MsgOpaqueData/interfaces/IPollOption)

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

#### Implementation of

[`IPollVoteSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot).[`option`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot#option)

***

### optionVoteCount?

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

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

#### Implementation of

[`IPollVoteSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot).[`optionVoteCount`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot#optionvotecount)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IPollVoteSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot)

#### Returns

[`PollVoteSnapshot`](/proto-reference/MsgOpaqueData/classes/PollVoteSnapshot)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`PollVoteSnapshot`](/proto-reference/MsgOpaqueData/classes/PollVoteSnapshot)

***

### encode()

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

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

#### Parameters

##### m

[`IPollVoteSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`PollVoteSnapshot`](/proto-reference/MsgOpaqueData/classes/PollVoteSnapshot)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`PollVoteSnapshot`](/proto-reference/MsgOpaqueData/classes/PollVoteSnapshot)

##### o?

`IConversionOptions`

#### Returns

`object`
