PollCreateParams

data class PollCreateParams @JvmOverloads constructor(title: String, optionTexts: List<String>, data: PollData?, allowUserSuggestion: Boolean?, allowMultipleVotes: Boolean?, closeAt: Long)

Parameters for creating poll and updating poll operations. For poll creation, title and optionTexts are required and all other members are optional. For poll update, all members are optional.

Since

4.1.0

See also

Constructors

Link copied to clipboard
fun PollCreateParams(title: String, optionTexts: List<String>, data: PollData? = null, allowUserSuggestion: Boolean? = null, allowMultipleVotes: Boolean? = null, closeAt: Long = Poll.POLL_DEFAULT_TS)

Properties

Link copied to clipboard
var allowMultipleVotes: Boolean? = null

Whether to allow multiple vote casting

Link copied to clipboard
var allowUserSuggestion: Boolean? = null

Whether to allow user-suggested options

Link copied to clipboard
var closeAt: Long

Unix timestamp at which the poll has closed or will close (second)

Link copied to clipboard
var data: PollData? = null

An additional json data to accompany the poll.

Link copied to clipboard
var optionTexts: List<String>

options for this poll.

Link copied to clipboard
var title: String

Title of the poll.