SetPollAnswer
public struct SetPollAnswer : Codable, Equatable, TDFunction
Changes the user answer to a poll. A poll in quiz mode can be answered only once
-
Undocumented
Declaration
Swift
public typealias Result = Ok -
Identifier of the chat to which the poll belongs
Declaration
Swift
public let chatId: Int53 -
Identifier of the message containing the poll
Declaration
Swift
public let messageId: Int53 -
0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers
Declaration
Swift
public let optionIds: [Int32] -
Changes the user answer to a poll. A poll in quiz mode can be answered only once
Parameters
chatIdIdentifier of the chat to which the poll belongs
messageIdIdentifier of the message containing the poll
optionIds0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers
View on GitHub
Install in Dash
SetPollAnswer Structure Reference