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…
|Scheme layer used: |
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 #…
|Scheme layer used: |
This update brings a few general enhancements that are enough to deserve a new release, with a new feature: beta markdown-like parsing for
parse_mode='md'for Markdown! It works in a similar fashion to the official clients…
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…
This release primarly focuses on a few bug fixes and enhancements. Although more stuff may have broken along the way.
.get_input_entitywas failing for IDs and other cases, also making more requests than it should.
abspathwhen sending a file. You can now also ove…
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
EntityDatabase will, by default, cache all the users, chats and channels you find in memory for as long as the program i…
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 …
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
Another bug that didn't allow you to leave as
None flag parameters that needed a list has been fixed.
Other internal chan…
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.