mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 05:04:33 +03:00
341fb38136
For some reason, the server seems to kick us after 1024 items from the network are received. Tested with the following code, 1022 updates were received, after BadServerSalt, NewSessionCreated and MsgsAck: client = TelegramClient(..., spawn_read_thread=False) client.connect(_sync_updates=False) sender = client._sender client = None while True: try: sender.receive(None) except TimeoutError: pass except ConnectionResetError: sender.connect() If one were to run this code after being kicked no further items will be retrieved and it will always timeout. Invoking a ping has no effect either. Invoking some "high level" request like getState seems to do the trick. |
||
---|---|---|
.. | ||
crypto | ||
errors | ||
extensions | ||
network | ||
tl | ||
__init__.py | ||
helpers.py | ||
session.py | ||
telegram_bare_client.py | ||
telegram_client.py | ||
update_state.py | ||
utils.py | ||
version.py |