Telethon
Telethon copied to clipboard
Unexpected behavior of receive_updates.
Hi, if i set receive_updates
= False. I can see on my logs that telethon is still handling updates:
[DEBUG][p 30173 Thread-1][1645790855.963934][mtprotosender.py:642][_handle_gzip_packed] Handling gzipped data
[DEBUG][p 30173 Thread-1][1645790855.964556][mtprotosender.py:654][_handle_update] Handling update Updates
[DEBUG][p 30173 Thread-1][1645790855.965215][mtprotosender.py:501][_recv_loop] Receiving items from the network...
Client:
client = TelegramClient(
"bota",
0,
"0",
receive_updates=False,
loop=loop,
auto_reconnect=True,
flood_sleep_threshold=0,
)
await client.start(bot_token=config.TOKEN)
logger.info("telethon connected")
await client.run_until_disconnected()
I think telethon on startup it sends requests without invokeWithoutUpdates
so telegram will still send updates.