exitClientById method

Future<bool> exitClientById(
  1. int clientId, {
  2. String? extra,
})

Implementation

Future<bool> exitClientById(
  int clientId, {
  String? extra,
}) async {
  MtprotoClient? tdlibClient = getClientById(clientId);
  if (tdlibClient != null) {
    tdlibClient.close();
    remove(tdlibClient);
    return true;
  }
  return false;
}