CreatePoll

public struct CreatePoll : Codable, Hashable, Sendable

A request to create a new poll

  • Undocumented

    Declaration

    Swift

    public init(expiresIn: Int, multiple: Bool? = nil, hideTotals: Bool? = nil, options: [String])
  • Integer. Duration that the poll should be open, in seconds. If provided, media_ids cannot be used, and poll[options] must be provided.

    Declaration

    Swift

    public var expiresIn: Int
  • Does the poll allow multiple-choice answers? Defaults to false.

    Declaration

    Swift

    public var multiple: Bool?
  • Hide vote counts until the poll ends? Defaults to false.

    Declaration

    Swift

    public var hideTotals: Bool?
  • Possible answers for the poll. If provided, media_ids cannot be used, and poll[expires_in] must be provided.

    Declaration

    Swift

    public var options: [String]