closePoll

fun BaseChannel.closePoll(pollId: Long, handler: ResultHandler<Poll>?)

Close poll

Since

4.15.0

Parameters

pollId

The ID of the poll to close

handler

The handler for the result


suspend fun BaseChannel.closePoll(pollId: Long): Poll

Deprecated

As of 4.17.0, replaced with awaitClosePoll(pollId).

Replace with

awaitClosePoll(pollId)

Close poll

Since

4.15.0

Parameters

pollId

The ID of the poll to close