- final var results = m.sendQuitGroupMessage(groupId,
- groupAdmins == null ? Set.of() : new HashSet<>(groupAdmins));
- final var timestamp = results.first();
- writer.println("{}", timestamp);
- handleTimestampAndSendMessageResults(results.second());
+ final var results = m.quitGroup(groupId, groupAdmins);
+ outputResult(outputWriter, results);