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

# PollVotesSnapshot

> Protobuf class PollVotesSnapshot generated from WAProto.

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

## Implements

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

## Constructors

### new PollVotesSnapshot()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### pollVotes

> **pollVotes**: [`IPollVoteSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVoteSnapshot)\[]

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

#### Implementation of

[`IPollVotesSnapshot`](/proto-reference/MsgOpaqueData/interfaces/IPollVotesSnapshot).[`pollVotes`](/proto-reference/MsgOpaqueData/interfaces/IPollVotesSnapshot#pollvotes)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
