joinGroupCall method

Future<Result<UpdatesBase>> joinGroupCall({
  1. required bool muted,
  2. required bool videoStopped,
  3. required InputGroupCallBase call,
  4. required InputPeerBase joinAs,
  5. String? inviteHash,
  6. required DataJSONBase params,
})

Join Group Call.

ID: b132ff7b.

Implementation

Future<Result<UpdatesBase>> joinGroupCall({
  required bool muted,
  required bool videoStopped,
  required InputGroupCallBase call,
  required InputPeerBase joinAs,
  String? inviteHash,
  required DataJSONBase params,
}) async {
  // Preparing the request.
  final request = PhoneJoinGroupCall(
    muted: muted,
    videoStopped: videoStopped,
    call: call,
    joinAs: joinAs,
    inviteHash: inviteHash,
    params: params,
  );

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

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