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

    Declaration

    Swift

    public init(chatId: Int53, messageId: Int53, optionIds: [Int32])

    Parameters

    chatId

    Identifier of the chat to which the poll belongs

    messageId

    Identifier of the message containing the poll

    optionIds

    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