github LonamiWebs/Telethon v0.15.2
Bug fixes and new small features

latest releases: v1.37.0, v1.36.0, v1.35.1...
pre-release7 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.