tdJsonClientExecute function

TdObject? tdJsonClientExecute(
  1. TdFunction event
)

Synchronously executes TDLib TdFunction event. May be called from any thread. Only a few requests can be executed synchronously.

Implementation

TdObject? tdJsonClientExecute(TdFunction event) {
  final req = json.encode(event);
  final res = TdPlugin.instance.tdJsonClientExecute(req);
  return convertToObject(res);
}