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.
Читать полностью…Set documentation language to en (ba7fc24 by Lonami)
Fix sending copies of a file message should ignore parse mode (4f51604 by Lonami)
Fix MediaEmptyError error when sending some videos (#3951) (ef4f9a9 by th3c00lw0lf)
Читать полностью…v1.25.4 has been released with the following changes:
• "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
Beware of random links in Telethon's wiki pages on GitHub. Anyone can edit these wiki pages, and someone had added a link to what is possibly a virus.
If you find such malicious links please let me know and be sure to remove them from the wiki (and maybe even report the user to GitHub).
Telethon doesn't have any "installer", and definitely not an .exe file. The correct way to install the official Telethon version is via pip install telethon
.
Let download_profile_photo work with min-User (299b090 by Lonami)
Don't unnecessarily refetch the sender twice (db29e9b by Lonami)
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 (needed so that updates from them could be fetched properly). This is now fixed.
Nothing major but when reporting bugs please do so with the latest version (currently v1.25.2).
I've also (hopefully) fixed @TelethonianBot to start posting commits here (it was broken because the same code was used for StackOverflow which had started causing 403 on the requests).
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.
Fix some typos and add note about BotFather in migration guide (073b87b 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)
Fix edit_admin failing on small Chat (949b54f by Lonami)
Bump to v1.25.3 (7f5a1ec by Lonami)
Revert accidental NO_UPDATES_TIMEOUT change and bump to v1.25.4 (2d237c4 by Lonami)
Shield disconnect from cancellation (ad2238e by Lonami)
Document that disconnect cancels event handlers (04cf295 by Lonami)
Lower severity of some log messages during update handling (d2b1c3e by Lonami)
Add CHAT_FORWARDS_RESTRICTED to known errors (7f472ee by Lonami)
I could not test some of the fixes since I was unable to reproduce many of the issues people reported with regards to update handling. Please be sure to report any bug you may find with regards to update handling! In particular the scary-looking "Fatal error handling updates" which mentions ENTRY_SECRET
, since this was the most common by far, should be fixed, but if it's not I would like to hear about it.
Remove input_peer parameter from get_me (d426099 by Lonami)
Make raw API types immutable (070af28 by Lonami)
Make upload_file private (f2ef0bf by Lonami)
Begin unification of event builders and events (9726169 by Lonami)
Rework methods to manage event handlers (0802f7e by Lonami)
Fix date usage in messagebox impl (05457ea by Lonami)
Fix saving entity types in sqlite (a16c397 by Lonami)
Implement dispatching events (a1fe805 by Lonami)
Introduce some filters (055eca4 by Lonami)
Add proper warnings when applying filters to updates fails (a3a60e6 by Lonami)