Chat / JavaScript
Chat JavaScript v4
Chat JavaScript
Chat
JavaScript
Version 4
Home
/
Chat
/
JavaScript
/
Message

Update a poll option

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

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