tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

loadChats is causing freezes on larger accounts #2409

Closed bubblecsh closed 1 year ago

bubblecsh commented 1 year ago

Each call to loadChats is freezing incoming updates from tdlib for up to 10-20 minutes. Also inputs to tdlib like sendMessage are processed with the same delay. This account has 8k chats and it took 11h to load them while there are no issues on smaller accounts. Could you please suggest how to deal with chats loading on these larger accounts?

levlam commented 1 year ago

TDLib can't freeze for so long. Are you sure that you don't block the thread, processing request responses and responses, until the chat list is fully loaded? Then could you send TDLib's log with verbosity level 4 to https://t.me/tdlib_bot?

bubblecsh commented 1 year ago

This was not a TDLib issue indeed, apologies.