GetPollVoters

public struct GetPollVoters : Codable, Equatable, TDFunction

Returns users voted for the specified option in a non-anonymous polls. For the optimal performance the number of returned users is chosen by the library

  • Undocumented

    Declaration

    Swift

    public typealias Result = Users
  • 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 identifier of the answer option

    Declaration

    Swift

    public let optionId: Int32
  • Number of users to skip in the result; must be non-negative

    Declaration

    Swift

    public let offset: Int32
  • The maximum number of users to be returned; must be positive and can’t be greater than 50. Fewer users may be returned than specified by the limit, even if the end of the voter list has not been reached

    Declaration

    Swift

    public let limit: Int32
  • Returns users voted for the specified option in a non-anonymous polls. For the optimal performance the number of returned users is chosen by the library

    Declaration

    Swift

    public init(chatId: Int53, messageId: Int53, optionId: Int32, offset: Int32, limit: Int32)

    Parameters

    chatId

    Identifier of the chat to which the poll belongs

    messageId

    Identifier of the message containing the poll

    optionId

    0-based identifier of the answer option

    offset

    Number of users to skip in the result; must be non-negative

    limit

    The maximum number of users to be returned; must be positive and can’t be greater than 50. Fewer users may be returned than specified by the limit, even if the end of the voter list has not been reached