You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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)
The text was updated successfully, but these errors were encountered: