vote

Cast a vote. User-only.

Parameters

chatId: ID

The identifier of the chat that includes the poll.

messageId: number

The identifier of the message that includes the poll.

optionIndexes: number[]

The indexes of the options to cast for.

Result

void

Syntax

await client.vote(chatId, messageId, optionIndexes);