Methods

addPollOption

Add an option to a poll. 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.

The option to add.

Result

void

Syntax

await client.addPollOption(chatId, messageId, option);