/ SDKs / JavaScript
SDKs
Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
JavaScript
Version 4

Update a poll option

Copy link

You can update a poll option by passing the pollId, the pollOptionId, and the optionText parameters in the updatePollOption() method.

JavaScriptTypeScript
const updatedPoll = await channel.updatePollOption(pollId, pollOptionId, optionText);