mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
d70811b693
Every update that hadn't been acknowledged on the main connection yet would be resent on any new connection. These new connections are made temporary when invoking anything from any thread that's not the main thread. It would also process all the updates, hence, Telegram would be resending these not-acknowledged updates to the temporary connection, and the updates would be processed again, then the update handler would react to the duplicated updates over and over. To fix this, simply don't process updates on the temporary thread at all. With this reasoning, if we don't acknowledge updates on the temporary connections, Telegram will resend them on the main connection, so we should not lose any. |
||
---|---|---|
.. | ||
crypto | ||
errors | ||
extensions | ||
network | ||
tl | ||
__init__.py | ||
helpers.py | ||
telegram_bare_client.py | ||
telegram_client.py | ||
update_state.py | ||
utils.py |