updatePoll method

Future<Poll> updatePoll({
  1. required int pollId,
  2. required PollUpdateParams params,
})

Updates fields of this poll with given params.

Implementation

Future<Poll> updatePoll({
  required int pollId,
  required PollUpdateParams params,
}) async {
  sbLog.i(StackTrace.current, 'pollId: $pollId');
  checkUnsupportedAction();

  return await chat.apiClient.send(PollUpdateRequest(
    chat,
    pollId: pollId,
    params: params,
  ));
}