Telethon/telethon
Lonami Exo 8ae75db862 Sort updates preemptively
Closes #3936.

There are two changes made to ensure the first update in a channel
cannot be lost, first by always sorting updates before applying pts,
and second by cautiously initializing the local pts if the client
had no pts known beforehand.

It might be possible to cleanup the handling of possible gaps now
that updates are always sorted, but that requires more thought.
2022-11-20 22:51:59 +01:00
..
_updates Sort updates preemptively 2022-11-20 22:51:59 +01:00
client Fix get_dialogs could fail when count % chunk_size = 0 2022-11-09 16:14:12 +01:00
crypto Revert "Use tgcrypto if available (#1715)" 2021-03-20 17:20:33 +01:00
errors Don't reset the auth_key upon receiving -404 2022-05-12 12:03:48 +02:00
events Fix events.Album did not have chat in PM 2022-09-20 17:54:05 +02:00
extensions del_surrogate for HTML inline URLs 2022-09-20 18:18:26 +02:00
network Handle DestroyAuthKey result more gracefully 2022-10-21 15:52:00 +02:00
sessions Remove missed async keywords from the revert 2022-08-30 12:40:05 +02:00
tl Don't unnecessarily refetch the sender twice 2022-10-03 13:11:48 +02:00
__init__.py Make custom, functions and types proper modules 2022-09-20 12:59:36 +02:00
custom.py Make custom, functions and types proper modules 2022-09-20 12:59:36 +02:00
entitycache.py Add EntityCache.clear 2021-06-19 18:32:23 +02:00
functions.py Make custom, functions and types proper modules 2022-09-20 12:59:36 +02:00
helpers.py Fix get_running_loop usage in Python3.6 (#3941) 2022-10-02 19:05:11 +02:00
hints.py Fix Python 3.5.2 type hinting (#1177) 2019-06-28 21:26:08 +02:00
password.py Remove unused imports and variables 2020-07-04 13:29:43 +02:00
requestiter.py Avoid explicitly passing the loop to asyncio 2020-07-25 18:39:35 +02:00
sync.py Avoid unnecessary await in Conversation 2019-08-13 18:11:02 +02:00
types.py Make custom, functions and types proper modules 2022-09-20 12:59:36 +02:00
utils.py Recognize invite links with plus sign prefix 2022-09-20 10:57:52 +02:00
version.py Revert accidental NO_UPDATES_TIMEOUT change and bump to v1.25.4 2022-10-14 18:43:44 +02:00