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

Other channels:
• Russian: @TelethonRussian
• Persian: @TelethonGap
• Snippets: @TelethonSnippets2
Download Telegram
Update to layer 146 (#3933) (f819593 by New-dev0)
Fix MediaEmptyError error when sending some videos (#3951) (ef4f9a9 by th3c00lw0lf)
Fix iter_messages could get stuck on global search (b3266fa by Lonami)
Document how to send spoilers and custom emoji (0980d55 by Lonami)
Fix sender destroy session handling was not running (a7db08d by Lonami)
Fix log message formatting when obj was not updates (f902c92 by Lonami)
Handle DestroyAuthKey result more gracefully (2ffac2d by Lonami)
Handle ConnectionError during update handling (0c86806 by Lonami)
Fix some typos and add note about BotFather in migration guide (073b87b by Lonami)
Update to layer 148 and document new more errors (#3970) (fb43f63 by SpEcHiDe)
Fix get_dialogs could fail when count % chunk_size = 0 (2c85ffe by Lonami)
Sort updates preemptively (8ae75db by Lonami)
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.
Bump to v1.26 and update layer to 149 (bd1ba3b by Lonami)
Set documentation language to en (ba7fc24 by Lonami)
Fix sending copies of a file message should ignore parse mode (4f51604 by Lonami)
Don't error when calling disconnect after logout (83f13da by Lonami)
Fix calls to disconnect after logout (4a6ef97 by Lonami)
Update documentation and list of known errors (b2925f8 by Lonami)
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.
Change updates add_done_callback to discard tasks more reliably (5080715 by Lonami)