Several requests at once and upload compression
Pre-release
Pre-release
New major release, since I've decided that these two features are big enough:
- Requests larger than 512 bytes will be compressed through gzip, and if the result is smaller, this will be uploaded instead.
- You can now send multiple requests at once, they're simply
*var_args
on the.invoke()
. Note that the server doesn't guarantee the order in which they'll be executed!
Internally, another important change. The .on_send
function on the TLObjects
is gone, and now there's a new .to_bytes()
. From my tests, this has always been over twice as fast serializing objects, although more replacements need to be done, so please report any issues.
Besides this:
- Downloading media from CDNs wasn't working (wrong access to a parameter).
- Correct type hinting.
- Added a tiny sleep when trying to perform automatic reconnection.
- Error reporting is done in the background, and has a shorter timeout.
- Implemented
.get_input_media
helper methods. Now you can even use another message as input media! setup.py
used to fail with wrongly generated code.