send
open fun send(query: TdApi.Function, resultHandler: Client.ResultHandler, exceptionHandler: Client.ExceptionHandler)
Sends a request to the TDLib.
Parameters
query
Object representing a query to the TDLib.
result Handler
Result handler with onResult method which will be called with result of the query or with TdApi.Error as parameter. If it is null, nothing will be called.
exception Handler
Exception handler with onException method which will be called on exception thrown from resultHandler. If it is null, then defaultExceptionHandler will be called.
Sends a request to the TDLib with an empty ExceptionHandler.
Parameters
query
Object representing a query to the TDLib.
result Handler
Result handler with onResult method which will be called with result of the query or with TdApi.Error as parameter. If it is null, then defaultExceptionHandler will be called.