addPollOption

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

Add poll option

Return

The poll with added option

Since

4.15.0

Parameters

pollId

The poll id to add option

optionText

The option text to add


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

Adds an option with optionText to this poll. Once added successfully, a non-null Poll instance will be passed to the ResultHandler.

Since

4.15.0

Parameters

pollId

The ID of the poll to add an option

optionText

The option text to add

handler

The handler for the result