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

Add a poll option

Copy link

You can add a poll option to an existing poll by passing the pollId and the optionText as an argument to the parameter in the addPollOption() method.

const poll: Poll = await channel.addPollOption(pollId, optionText);