Parameters for creating poll and updating poll operations.

interface PollCreateParams {
    allowMultipleVotes?: boolean;
    allowUserSuggestion?: boolean;
    closeAt?: number;
    data?: PollData;
    optionTexts: string[];
    title: string;
}

Properties

allowMultipleVotes?: boolean

Whether to allow multiple vote casting.

allowUserSuggestion?: boolean

Whether to allow user-suggested options.

closeAt?: number

Timestamp at which the poll has closed or will close (in second).

data?: PollData

An additional json data to accompany the poll.

optionTexts: string[]

Options for this poll.

title: string

Title of the poll.