updateClientById method

Future<bool> updateClientById(
  1. int clientId, {
  2. required TdlibClient newTdlibClient,
  3. String? extra,
  4. bool isInvokeThrowOnError = true,
})

Implementation

Future<bool> updateClientById(
  int clientId, {
  required TdlibClient newTdlibClient,
  String? extra,
  bool isInvokeThrowOnError = true,
}) async {
  TdlibClient? tdlibClient = clients[clientId];
  if (tdlibClient != null) {
    // sendPort.send(newTdlibClient);

    clients[clientId] = newTdlibClient;
    return true;
  }
  return false;
}