updatePollOption

suspend fun BaseChannel.updatePollOption(pollId: Long, pollOptionId: Long, optionText: String): Poll

Updates optionText fields of this poll option. A non-null PollOption instance will be returned once updated successfully

Return

The poll option

Since

4.15.0

Parameters

pollId

The poll id to update option

pollOptionId

The poll option id to update

optionText

The option text to update


fun BaseChannel.updatePollOption(pollId: Long, pollOptionId: Long, optionText: String, handler: ResultHandler<Poll>?)

Updates optionText fields of this poll option. Once updated successfully, a non-null PollOption instance will be passed to the handler.

Since

4.15.0

Parameters

pollId

The ID of the poll to update

pollOptionId

The ID of the poll option to update

optionText

The option text to update

handler

The handler for the result