td icon indicating copy to clipboard operation
td copied to clipboard

Log in via session file authorization

Open chaoren-zg opened this issue 7 months ago • 5 comments

In the Java example, for the login process, one needs to input the mobile phone number and verification code. Can I complete the login directly using the session file?

chaoren-zg avatar Jun 08 '25 04:06 chaoren-zg

Or, besides the verification code, what other login methods does tdlib offer? For example, account password, cached login information files, and so on.

chaoren-zg avatar Jun 08 '25 07:06 chaoren-zg

No. There is no such concept as "session file" in Telegram.

You can log in in exactly the same way as in any other app.

levlam avatar Jun 08 '25 08:06 levlam

No. There is no such concept as "session file" in Telegram.

You can log in in exactly the same way as in any other app.

Log in with account and password?The normal way to create a client seems to be through a verification code login.

chaoren-zg avatar Jun 08 '25 09:06 chaoren-zg

I want to complete the login authentication by directly reading the user's conversation information, rather than using the current verification code login method. Is this possible?

chaoren-zg avatar Jun 08 '25 09:06 chaoren-zg

See https://core.telegram.org/tdlib/getting-started#user-authorization.

levlam avatar Jun 14 '25 20:06 levlam