Client
class Client
Main class for interaction with the TDLib.
Types
Link copied to clipboard
interface ExceptionHandler
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 LogMessageHandler
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
Synchronously executes a TDLib request.
Link copied to clipboard
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
Sets the handler for messages that are added to the internal TDLib log.