td_json_client_execute method
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<pkg_ffi.Utf8> td_json_client_execute(
ffi.Pointer<ffi.Void> client,
ffi.Pointer<pkg_ffi.Utf8> request,
) {
return _td_json_client_execute(
client,
request,
);
}