tdSend function

void tdSend(
  1. int clientId,
  2. TdFunction event, [
  3. dynamic extra
])

Sends request to the TDLib client. May be called from any thread. clientId is TDLib client identifier. event is TdFunction request to TDLib.

Implementation

void tdSend(int clientId, TdFunction event, [dynamic extra]) {
  final req = json.encode(event.toJson(extra));
  TdPlugin.instance.tdSend(clientId, req);
}