Interface CreateStatusPollParam

interface CreateStatusPollParam {
    expiresIn: number;
    hideTotals?: null | boolean;
    multiple?: null | boolean;
    options: readonly string[];
}

Properties

expiresIn: number

Duration the poll should be open, in seconds. If provided, media_ids cannot be used, and poll[options] must be provided.

hideTotals?: null | boolean

Hide vote counts until the poll ends?

multiple?: null | boolean

Allow multiple choices?

options: readonly string[]

Array of possible answers. If provided, media_ids cannot be used, and poll[expires_in] must be provided.