getPollVotes method
Future<Result<MessagesVotesListBase> >
getPollVotes({
- required InputPeerBase peer,
- required int id,
- Uint8List? option,
- String? offset,
- 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>();
}