Telethon/telethon
Lonami Exo d81eb0b2e8 Apply pts returned by some additional requests
When a bot account sends a message, deletes it, and sends a new one,
very reliably it would detect a gap, and as a result recover the
second message it sent, processing it itself (because the hack with
`_self_outgoing` cannot possibly work when catching up).

Now certain `rpc_result` are also processed as-if they were updates
(including the ones from deleting messages), which solves this gap
issue. Not entirely sure if it's a hack or the intended way to do it
(since Telegram *does* return proper `updates` for other RPCs), but
it seems to solve this particular problem.

Other requests such as reading history, mentions or reactions also
return an instance of this type, but the `pts_count` should be 0,
and at worst it should simply trigger a gap, which shouldn't be a
big deal.
2023-01-14 12:31:01 +01:00
..
_updates Fix PERSISTENT_TIMESTAMP_EMPTY for new entries with pts 1, count 0 2022-12-22 20:30:38 +01:00
client Stop using asyncio.get_event_loop() 2023-01-11 21:02:29 +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 Stop using asyncio.get_event_loop() 2023-01-11 21:02:29 +01:00
extensions del_surrogate for HTML inline URLs 2022-09-20 18:18:26 +02:00
network Apply pts returned by some additional requests 2023-01-14 12:31:01 +01: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 Stop using asyncio.get_event_loop() 2023-01-11 21:02:29 +01: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 Stop using asyncio.get_event_loop() 2023-01-11 21:02:29 +01: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 Bump to v1.26.1 2022-12-22 20:30:38 +01:00