More bug fixes and enhancements
Pre-release
Pre-release
New stuff:
TelegramClient
now exposes a.is_connected()
method.- Initial authorization on a new data center will retry up to 5 times by default.
- Errors that couldn't be handled on the background thread will be raised on the next call to
.invoke()
orupdates.poll()
.
Bugs fixed:
- Now you should be able to sign in even if you have
process_updates=True
and no previous session. - Some errors and methods are documented a bit clearer.
.send_message()
could randomly fail, as the returned type was not expected.
Things that should reduce the amount of crashes:
TimeoutError
is now ignored, since the request will be retried up to 5 times by default.- "-404" errors (
BrokenAuthKeyError
's) are now detected when first connecting to a new data center. BufferError
is handled more gracefully, in the same way asInvalidCheckSumError
's.- Attempt at fixing some "NoneType has no attribute…" errors (with the
.sender
).
Other internal changes:
- Calling
GetConfigRequest
is now made less often. - The
initial_query
parameter from.connect()
is gone, as it's not needed anymore. - Renamed
all_tlobjects.layer
toall_tlobjects.LAYER
(since it's a constant). - The message from
BufferError
is now more useful.