LonamiWebs / Telethon

Pure Python 3 MTProto API Telegram client library, for bots too!
https://docs.telethon.dev
MIT License
10.01k stars 1.41k forks source link

edit_2fa + recovery email #1088

Closed Lonami closed 5 years ago

Lonami commented 5 years ago

Currently not handled: EMAIL_UNCONFIRMED_6.

drmizzcrypto commented 5 years ago

Traceback (most recent call last): File "<pyshell#517>", line 1, in import seaser File "C:\Users\drmiz\AppData\Local\Programs\Python\Python37-32\Scripts\seaser.py", line 219, in fa() File "C:\Users\drmiz\AppData\Local\Programs\Python\Python37-32\Scripts\seaser.py", line 56, in fa client.edit_2fa(new_password= password_2fa,email= email_2fa) File "C:\Users\drmiz\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telethon\sync.py", line 54, in syncified return loop.run_until_complete(coro) File "C:\Users\drmiz\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 573, in run_until_complete return future.result() File "C:\Users\drmiz\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telethon\client\auth.py", line 493, in edit_2fa new_secure_settings=None File "C:\Users\drmiz\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telethon\client\users.py", line 60, in call result = await future telethon.errors.rpcbaseerrors.BadRequestError: RPCError 400: EMAIL_UNCONFIRMED_6 (caused by UpdatePasswordSettingsRequest)

Lonami commented 5 years ago

https://github.com/LonamiWebs/Telethon/commit/51f0bf5d848b35623cc12c392f052a392ea26fef