-
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
id
Unique poll identifier
question
Poll question, 1-255 characters
options
List of poll answer options
totalVoterCount
Total number of voters, participating in the poll
recentVoterUserIds
User identifiers of recent voters, if the poll is non-anonymous
isAnonymous
True, if the poll is anonymous
type
Type of the poll
isClosed
True, if the poll is closed