github LonamiWebs/Telethon v0.14
Several requests at once and upload compression

latest releases: v1.35.1, v1.35.0, v1.34.0...
pre-release6 years ago

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.

Don't miss a new Telethon release

NewReleases is sending notifications on new releases.