PollOption
public struct PollOption : Codable, Equatable, FunctionResult
Describes one answer option of a poll
-
Option text, 1-100 characters
Declaration
Swift
public let text: String
-
Number of voters for this option, available only for closed or voted polls
Declaration
Swift
public let voterCount: Int32
-
The percentage of votes for this option, 0-100
Declaration
Swift
public let votePercentage: Int32
-
True, if the option was chosen by the user
Declaration
Swift
public let isChosen: Bool
-
True, if the option is being chosen by a pending setPollAnswer request
Declaration
Swift
public let isBeingChosen: Bool
-
Describes one answer option of a poll
Declaration
Swift
public init(text: String, voterCount: Int32, votePercentage: Int32, isChosen: Bool, isBeingChosen: Bool)
Parameters
text
Option text, 1-100 characters
voterCount
Number of voters for this option, available only for closed or voted polls
votePercentage
The percentage of votes for this option, 0-100
isChosen
True, if the option was chosen by the user
isBeingChosen
True, if the option is being chosen by a pending setPollAnswer request