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

Two-steps verification is enabled and a password is required (caused by SignInRequest) #7

Open
uruk-hai-21 opened this issue May 28, 2021 · 2 comments

Comments

@uruk-hai-21
Copy link

What should I do in this case?

@AbirHasan2005
Copy link
Owner

Remove 2FA from your Telegram Account during the process.

@laminda
Copy link

laminda commented Jan 11, 2023

I found a solution for 2FA , 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)`

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

3 participants