Methods

removePollOption

Remove an option from 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.

optionIndex: number

The index of the option to remove.

Result

void

Syntax

await client.removePollOption(chatId, messageId, optionIndex);