getPollResults method

Future<Result<UpdatesBase>> getPollResults({
  1. required InputPeerBase peer,
  2. required int msgId,
})

Get Poll Results.

ID: 73bb643b.

Implementation

Future<Result<UpdatesBase>> getPollResults({
  required InputPeerBase peer,
  required int msgId,
}) async {
  // Preparing the request.
  final request = MessagesGetPollResults(
    peer: peer,
    msgId: msgId,
  );

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

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