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

All devices are logged out after successful TDLib login session #3101

Open phpcxy opened 1 week ago

phpcxy commented 1 week ago

Current Behavior:

  1. Successfully log in to Telegram using TDLib
  2. After a short period (while the TDLib session is still active)
  3. All other devices (including the official Telegram app) using the same account are automatically logged out
  4. This happens consistently in this sequence

Questions:

  1. How can I investigate the root cause of this behavior?
  2. Are there any specific logs or events I should monitor to understand what triggers these logouts?
  3. Is there a way to check if this is caused by Telegram's security mechanisms or by something in my TDLib implementation?

What I'd like to know:

  1. Which log levels or specific events should I watch for?
  2. Are there any specific TDLib methods I can use to check the session status?
  3. How can I determine if my application is being flagged as suspicious?

I use TDLib 1.8.35

levlam commented 6 days ago
  1. You can't investigate the root cause of this behavior.
  2. There are no specific events.
  3. This is caused by Telegram's security mechanisms.

You can't determine the cause or do anything specific to avoid this.