Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found a solution for 2FA [,](https://stackoverflow.com/questions/68407031/telethon-cannot-sign-into-accounts-with-two-step-verfication) could you add it to the code. I didn't succeed, I don't have enough knowledge (( #35

Open
laminda opened this issue Jan 11, 2023 · 1 comment

Comments

@laminda
Copy link

laminda commented Jan 11, 2023

    I found a solution for 2FA [ link](https://stackoverflow.com/questions/68407031/telethon-cannot-sign-into-accounts-with-two-step-verfication) could you add it to the code. I didn't succeed, I don't have enough knowledge (( 

`client.start().

phone = input("Enter phone: ")
await client.send_code_request(phone, force_sms=False)
value = input("Enter login code: ")
try:
me = await client.sign_in(phone, code=value)
except telethon.errors.SessionPasswordNeededError:
password = input("Enter password: ")
me = await client.sign_in(password=password)`

Originally posted by @laminda in #7 (comment)

@master88wi
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants