getPollVotes method

Future<Result<MessagesVotesListBase>> getPollVotes({
  1. required InputPeerBase peer,
  2. required int id,
  3. Uint8List? option,
  4. String? offset,
  5. required int limit,
})

Get Poll Votes.

ID: b86e380e.

Implementation

Future<Result<MessagesVotesListBase>> getPollVotes({
  required InputPeerBase peer,
  required int id,
  Uint8List? option,
  String? offset,
  required int limit,
}) async {
  // Preparing the request.
  final request = MessagesGetPollVotes(
    peer: peer,
    id: id,
    option: option,
    offset: offset,
    limit: limit,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<MessagesVotesListBase>();
}