pypi Telethon 0.15.2
Bug fixes and new small features

latest releases: 1.35.0, 1.34.0, 1.33.1...
6 years ago

This release primarly focuses on a few bug fixes and enhancements. Although more stuff may have broken along the way.

Bug fixes:

  • .get_input_entity was failing for IDs and other cases, also making more requests than it should.
  • Use basename instead abspath when sending a file. You can now also override the attributes.
  • EntityDatabase.__delitem__ wasn't working.
  • .send_message() was failing with channels.
  • .get_dialogs(limit=None) should now return all the dialogs correctly.
  • Temporary fix for abusive duplicated updates.

Enhancements:

  • You will be warned if you call .add_update_handler with no update_workers.
  • New customizable threshold value on the session to determine when to automatically sleep on flood waits. See client.session.flood_sleep_threshold.
  • New .get_drafts() method with a custom Draft class by @JosXa.
  • Join all threads when calling .disconnect(), to assert no dangling thread is left alive.
  • Larger chunk when downloading files should result in faster downloads.
  • You can use a callable key for the EntityDatabase, so it can be any filter you need.

Internal changes:

  • MsgsAck is now sent in a container rather than its own request.
  • .get_input_photo is now used in the generated code.
  • .process_entities was being called from more places than only __call__.
  • MtProtoSender now relies more on the generated code to read responses.

Don't miss a new Telethon release

NewReleases is sending notifications on new releases.