telethonupdates | Unsorted

Telegram-канал telethonupdates - Telethon Updates

1964

Official channel for updates about Telethon. Join our groups: • English: @TelethonChat • Russian: @TelethonRussian • Off-topic: @TelethonOfftopic Find useful snippets at @TelethonSnippets2

Subscribe to a channel

Telethon Updates

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.

Читать полностью…

Telethon Updates

Fix calls to disconnect after logout (4a6ef97 by Lonami)

Читать полностью…

Telethon Updates

Set documentation language to en (ba7fc24 by Lonami)
Fix sending copies of a file message should ignore parse mode (4f51604 by Lonami)

Читать полностью…

Telethon Updates

Version 1.26 (view new and changed raw API methods)

Читать полностью…

Telethon Updates

Sort updates preemptively (8ae75db by Lonami)

Читать полностью…

Telethon Updates

Update to layer 148 and document new more errors (#3970) (fb43f63 by SpEcHiDe)

Читать полностью…

Telethon Updates

Handle ConnectionError during update handling (0c86806 by Lonami)

Читать полностью…

Telethon Updates

Document how to send spoilers and custom emoji (0980d55 by Lonami)

Читать полностью…

Telethon Updates

Fix MediaEmptyError error when sending some videos (#3951) (ef4f9a9 by th3c00lw0lf)

Читать полностью…

Telethon Updates

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

Читать полностью…

Telethon Updates

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.

Читать полностью…

Telethon Updates

Let download_profile_photo work with min-User (299b090 by Lonami)
Don't unnecessarily refetch the sender twice (db29e9b by Lonami)

Читать полностью…

Telethon Updates

Fix get_running_loop usage in Python3.6 (#3941) (908375a by salismazaya)

Читать полностью…

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 (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).

Читать полностью…

Telethon Updates

Version 1.25.1

Читать полностью…

Telethon Updates

Update documentation and list of known errors (b2925f8 by Lonami)

Читать полностью…

Telethon Updates

Don't error when calling disconnect after logout (83f13da by Lonami)

Читать полностью…

Telethon Updates

Bump to v1.26 and update layer to 149 (bd1ba3b by Lonami)

Читать полностью…

Telethon Updates

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.

Читать полностью…

Telethon Updates

Fix get_dialogs could fail when count % chunk_size = 0 (2c85ffe by Lonami)

Читать полностью…

Telethon Updates

Fix some typos and add note about BotFather in migration guide (073b87b by Lonami)

Читать полностью…

Telethon Updates

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)

Читать полностью…

Telethon Updates

Fix iter_messages could get stuck on global search (b3266fa by Lonami)

Читать полностью…

Telethon Updates

Update to layer 146 (#3933) (f819593 by New-dev0)

Читать полностью…

Telethon Updates

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)

Читать полностью…

Telethon Updates

Fix iter_messages was stopping too early in some channels (b6d8311 by Lonami)

Читать полностью…

Telethon Updates

Shield disconnect from cancellation (ad2238e by Lonami)
Document that disconnect cancels event handlers (04cf295 by Lonami)

Читать полностью…

Telethon Updates

Lower severity of some log messages during update handling (d2b1c3e by Lonami)
Add CHAT_FORWARDS_RESTRICTED to known errors (7f472ee by Lonami)

Читать полностью…

Telethon Updates

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.

Читать полностью…

Telethon Updates

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)

Читать полностью…
Subscribe to a channel