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
insteadabspath
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 noupdate_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 customDraft
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.