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.

resultHandler

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.

exceptionHandler

Exception handler with onException method which will be called on exception thrown from resultHandler. If it is null, then defaultExceptionHandler will be called.


open fun send(query: TdApi.Function, resultHandler: Client.ResultHandler)

Sends a request to the TDLib with an empty ExceptionHandler.

Parameters

query

Object representing a query to the TDLib.

resultHandler

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.