td_json_client_execute method

Pointer<Int32> td_json_client_execute(
  1. Pointer<Void> client,
  2. Pointer<Int8> request
)

Synchronously executes TDLib request. May be called from any thread. Only a few requests can be executed synchronously. Returned pointer will be deallocated by TDLib during next call to td_json_client_receive or td_json_client_execute in the same thread, so it can't be used after that. \paramin client The client. Currently ignored for all requests, so NULL can be passed. \paramin request JSON-serialized null-terminated request to TDLib. \return JSON-serialized null-terminated request response.

Implementation

ffi.Pointer<ffi.Int32> td_json_client_execute(
  ffi.Pointer<ffi.Void> client,
  ffi.Pointer<ffi.Int8> request,
) {
  return _td_json_client_execute(
    client,
    request,
  );
}