Skip to content

Authorization #56

Answered by thedemons
TopNowchik asked this question in Q&A
Apr 11, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Good day!
I want to thank you for a very useful library.
I have the following question. Why is it possible to log in to the telegram desktop without a cloud password, but when authorizing using your library, it asks for a password? I would be very grateful if you could clarify this for me.
Thanks in advance.

Hi, thanks for using the library, it means a lot to me.

Do you mean it throws an exception and asks for a 2FA password when loading TelegramClient from the tdata folder?
That's because when you convert TDesktop to TelegramClient, it'll re-login by default (flag=CreateNewSession) hence needing the password.

To actually re-use the session of that tdata, which won't ask for a 2FA passw…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TopNowchik
Comment options

Answer selected by TopNowchik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants