Telethon Updates
v1.25.2 was released earlier today. It contains two tiny changes: • Updated list of errors and updates log messages to include the channel ID (otherwise the log messages were useless) • get_dialogs (and iter_dialogs) were not filling the channel pts correctly…
v1.25.4 has been released with the following changes:
• "Timeout waiting for updates" is now a DEBUG log, not INFO (among others)
•
• The library should work again in Python 3.6 (but if you're using that, consider upgrading your Python version)
•
•
•
•
• "Timeout waiting for updates" is now a DEBUG log, not INFO (among others)
•
errors.ChatForwardsRestrictedError can now be used• The library should work again in Python 3.6 (but if you're using that, consider upgrading your Python version)
•
client.disconnect should no longer hang when used from event handlers•
client.download_profile_photo should now work with "min" users•
client.iter_messages should no longer miss messages in channels with non-displayable messages•
client.edit_admin was failing on small chats❤10🔥3🍌2👍1
Fix MediaEmptyError error when sending some videos (#3951) (ef4f9a9 by th3c00lw0lf)
❤8👍3🤣2🍌1
👍10🍌5💩4❤1🔥1🎉1🤣1
👍12🍌1
👍13🔥4
👍8❤3
👍7❤6👎1🎉1
👍6❤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.
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
❤7👍5💩4🎉3🤡1🖕1
👍8🔥5🎉5💩5🤡1🖕1
👍8💩5🔥1💔1
👍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
👍8💔2🔥1