-
Unique poll identifier
Declaration
Swift
public let id: TDInt64 -
Poll question, 1-255 characters
Declaration
Swift
public let question: String -
List of poll answer options
Declaration
Swift
public let options: [PollOption] -
Total number of voters, participating in the poll
Declaration
Swift
public let totalVoterCount: Int32 -
User identifiers of recent voters, if the poll is non-anonymous
Declaration
Swift
public let recentVoterUserIds: [Int32] -
True, if the poll is anonymous
Declaration
Swift
public let isAnonymous: Bool -
Type of the poll
Declaration
Swift
public let type: PollType -
True, if the poll is closed
Declaration
Swift
public let isClosed: Bool -
Describes a poll
Declaration
Swift
public init(id: TDInt64, question: String, options: [PollOption], totalVoterCount: Int32, recentVoterUserIds: [Int32], isAnonymous: Bool, type: PollType, isClosed: Bool)Parameters
idUnique poll identifier
questionPoll question, 1-255 characters
optionsList of poll answer options
totalVoterCountTotal number of voters, participating in the poll
recentVoterUserIdsUser identifiers of recent voters, if the poll is non-anonymous
isAnonymousTrue, if the poll is anonymous
typeType of the poll
isClosedTrue, if the poll is closed
View on GitHub
Install in Dash
Poll Structure Reference