Changelog
v5.2.0 (2018-10-24)
client.connectAndLogin
method.types/tdlib.ts
renamed to types/tdlib.d.ts
(see [#31][]).Changelog
v5.1.0
client.pause()
and client.resume()
functions, which allow you to pause update receiving.Changelog
v5.0.0
client.connect
function is now splitted into two functions: client.connect
and client.login
. Removed beforeAuth
argument from client.connect
function. Removed loginDetails
option from Client
constructor; now client.login
accepts a function that returns LoginDetails
.tdl
searches for tdjson
on Windows and for libtdjson
on other OSes.response
event that allows reading pure updates (i.e. "events" or "responses") that come from tdlib client_receive()
.logFilePath
option. client.setLogFilePath()
method can be used instead.tdlib.send
now returns undefined
instead of null
.databaseEncryptionKey
option.useDefaultVerbosityLevel
option for advanced users. When it's set to true, tdl
doesn't invoke setLogVerbosityLevel
during connect()
.tdlib.setLogFatalErrorCallback
now accepts null
.client.setLogFatalErrorCallback
now accepts null
.tdl-shared
with TS / Flow types.debug
namespaces: tdl:client:emitter
, tdl:client:response
, tdl:client:request
.