PollCreate

@Serializable
data class PollCreate(val options: List<PollOption>, val expiresInSec: Long, val allowMultipleChoices: Boolean?, val hideTotals: Boolean?)

Object used to create a new Poll.

Constructors

Link copied to clipboard
constructor(options: List<PollOption>, expiresInSec: Long, allowMultipleChoices: Boolean?, hideTotals: Boolean?)

Properties

Link copied to clipboard

Allow multiple choices in the poll?

Link copied to clipboard

Duration the poll should be open, in seconds.

Link copied to clipboard

Hide vote counts until the poll ends?

Link copied to clipboard

Array of possible answers.