Client

class Client

Main class for interaction with the TDLib.

Types

Link copied to clipboard
Interface for handler of exceptions thrown while invoking ResultHandler.
Link copied to clipboard
Exception class thrown when TDLib error occurred while performing execute.
Link copied to clipboard
Interface for handler of messages that are added to the internal TDLib log.
Link copied to clipboard
interface ResultHandler
Interface for handler for results of queries to TDLib and incoming updates from TDLib.

Functions

Link copied to clipboard
open fun create(updateHandler: Client.ResultHandler, updateExceptionHandler: Client.ExceptionHandler, defaultExceptionHandler: Client.ExceptionHandler): Client
Creates new Client.
Link copied to clipboard
open fun <T : TdApi.Object?> execute(query: TdApi.Function<T>): T
Synchronously executes a TDLib request.
Link copied to clipboard
open fun send(query: TdApi.Function, resultHandler: Client.ResultHandler)
Sends a request to the TDLib with an empty ExceptionHandler.
open fun send(query: TdApi.Function, resultHandler: Client.ResultHandler, exceptionHandler: Client.ExceptionHandler)
Sends a request to the TDLib.
Link copied to clipboard
open fun setLogMessageHandler(maxVerbosityLevel: Int, logMessageHandler: Client.LogMessageHandler)
Sets the handler for messages that are added to the internal TDLib log.