Skip to content
Compare
Choose a tag to compare

Changelog moved

Pre-release
Pre-release

Please refer to Read The Docs - Changelog (Version History) for the changelog from now on! You should read it every time you update the library, a considerable amount of effort is put into it and should save you from some "my code worked but not anymore".

Compare
Choose a tag to compare
Pre-release

In the beginning, session files used to be pickle. This proved to be bad as soon as one wanted to add more fields. For this reason, they were migrated to use JSON instead. But this proved to be bad as soon as one wanted to save things like entities (usernames, their ID and hash), so now it proper…

Compare
Choose a tag to compare

IPv6 support

Pre-release
Pre-release
Scheme layer used: 73

It's here, it has come! The library now supports IPv6! Just pass use_ipv6=True when creating a TelegramClient. Note that I could not test this feature because my machine doesn't have IPv6 setup. If you know IPv6 works in your machine but the library doesn't, please refer to #…

Compare
Choose a tag to compare

General enhancements

Pre-release
Pre-release
Scheme layer used: 72

This update brings a few general enhancements that are enough to deserve a new release, with a new feature: beta markdown-like parsing for .send_message()!

Additions

  • .send_message() supports parse_mode='md' for Markdown! It works in a similar fashion to the official clients…
Compare
Choose a tag to compare
Pre-release

Hopefully a very ungrateful bug has been removed. When you used to invoke some request through update handlers, it could potentially enter an infinite loop. This has been mitigated and it's now safe to invoke things again! A lot of updates were being dropped (all those gzipped), and this has been…

Compare
Choose a tag to compare
Pre-release

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 ove…
Compare
Choose a tag to compare
Pre-release

The main feature of this release is that Telethon now has a custom database for all the entities you encounter, instead depending on @lru_cache on the .get_entity() method.

The EntityDatabase will, by default, cache all the users, chats and channels you find in memory for as long as the program i…

Compare
Choose a tag to compare
Pre-release

After hundreds of lines changed on a major refactor, it's finally here. It's the Updates Overhaul Update; let's get right into it!

New stuff and enhancements

  • You can invoke requests from update handlers. And any other thread. A new temporary will be made, so that you can be sending even several …
Compare
Choose a tag to compare
Pre-release

Two bug fixes, one of them quite important, related to the serialization. Every object or request that had to serialize a True/False type was always being serialized as false!

Another bug that didn't allow you to leave as None flag parameters that needed a list has been fixed.

Other internal chan…

Compare
Choose a tag to compare
Pre-release

Version v0.14 had started working on the new .to_bytes() method to dump the BinaryWriter and its usage on the .on_send() when serializing TLObjects, and this release finally removes it. The speed up when serializing things to bytes should now be over twice as fast wherever it's needed.

Other inte…