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

Criteria for user disconnect and reauthentication #2762

Closed sierret closed 8 months ago

sierret commented 9 months ago

After some time the library "disconnects" the user and asks for credentials(typically phone number and verification code). What is the criteria for these disconnects? Is it based on the amount of updates/surpassng request quota by user or based on some time delay?

levlam commented 9 months ago

The behavior is the same as in any other apps: users must explicitly log out to be "disconnected", or be inactive for inactive_session_ttl days.