Telethon Updates
1.51K subscribers
29 photos
21 files
1.36K links
Official channel for updates about Telethon.
Official English group: @TelethonChat

Other channels:
• Russian: @TelethonRussian
• Persian: @TelethonGap
• Snippets: @TelethonSnippets2
Download Telegram
Fix some typos and add note about BotFather in migration guide (073b87b by Lonami)
👍83
Update to layer 148 and document new more errors (#3970) (fb43f63 by SpEcHiDe)
👍76👎1🎉1
Fix get_dialogs could fail when count % chunk_size = 0 (2c85ffe by Lonami)
👍62💩1🤡1🖕1
Sort updates preemptively (8ae75db by Lonami)
4👍2💩1🤡1🖕1
The StackOverflow question PyQt, Telethon. How to send a message on button click? prompted me to write a Wrapper to launch async tasks from threaded code. This is in my opinion one of the cleanest way in which you can combine threaded code with async code (a.k.a. Telethon).

Note that I still recommend you to avoid threaded code when possible, and use only async, but if you can't for some reason, this wrapper will setup and manage a new thread just for async code to run. Then you can use as many threads as you want, and communicate safely with the async code via a shared queue.
11👍5💩3🤡1🖕1
Bump to v1.26 and update layer to 149 (bd1ba3b by Lonami)
7👍5💩4🎉3🤡1🖕1
Set documentation language to en (ba7fc24 by Lonami)
Fix sending copies of a file message should ignore parse mode (4f51604 by Lonami)
👍9💩5🎉31🤡1🖕1
Don't error when calling disconnect after logout (83f13da by Lonami)
👍8🔥5🎉5💩5🤡1🖕1
Fix calls to disconnect after logout (4a6ef97 by Lonami)
👍8💩5🔥1💔1
Update documentation and list of known errors (b2925f8 by Lonami)
👍9💩5🔥1🎉1
Given the amount of trolls having fun with the reactions here, I've toned them down a bit. If you had a legitimate reason to react with a poop emoji or middle finger, please message me privately argumenting why you think it's a bad idea to disable that reaction, and I may reconsider. If you're a troll though, I'll simply report you and go on with my life.
16🔥6👍5💔5😁4👎1🎉1
Change updates add_done_callback to discard tasks more reliably (5080715 by Lonami)
👍8💔2🔥1
Introduce trace-level logs to MessageBox (c72c7b1 by Lonami)
👍3💔21
Fix messagebox state trace was not logging the object (a8ce308 by Lonami)
Promote messagebox warnings to errors (59ffad0 by Lonami)
Add more debug traces to the messagebox (e750eb7 by Lonami)
👍5💔3😁1
Fix payment.py example (#4005) (061a84b by yumupdate)
4👍1😐1
Telethon Updates
Version 1.26 (view new and changed raw API methods)
Version 1.26.1 has been released which should fix PersistentTimestampEmptyError. Thanks to everyone who reported the issue.

The problem occured when a new channel was created and an update for "message read" arrived before "new message", which caused Telethon to initialize the state for the new channel as 0, which led to the error above. Telethon now knows why and when it happens, and correctly sets the initial state as 1 when this occurs (Telegram seems to be aware of this issue, as it sends the second update with a value of 2 instead of the expected 1).
👍73🔥3🎉2😁1
Fix PERSISTENT_TIMESTAMP_EMPTY for new entries with pts 1, count 0 (6d2a5da by Lonami)
Bump to v1.26.1 (979e381 by Lonami)
Update to layer 150 (7288c99 by Lonami)
👍7😐3
Update to layer 151 (2007c83 by Lonami)
9👍4🎉2