Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
JavaScript
Version 4
Update a poll
Copy link
You can update a specific poll by creating and passing the PollUpdateParams
parameters in the channel.updatePoll()
method.
JavaScriptTypeScript
PollUpdateParams
Copy link
Parameter name | Type | Description |
---|---|---|
title? | string | Specifies the title of a poll. |
data? | PollData | Specifies an additional data to accompany the poll. A use case might be to provide explanations for incorrect quiz answers. |
isAnonymous? | boolean | Determines whether to make votes anonymous. (Default: |
allowUserSuggestion? | boolean | Determines whether to allow users to make suggestions. (Default: |
allowMultipleVotes? | boolean | Determines whether to allow users to vote on more than one poll options. (Default: |
closeAt? | number | Specifies the time when a poll has closed or will close in Unix seconds. |