tdSend function
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);
}