TelegramClient.edit_2fa
returns invalid value when disabling 2FA with invalid password
#4526
Open
3 tasks done
Code that causes the issue
Expected behavior
I encountered an issue when attempting to disable 2FA on an account that does not have 2FA enabled. The method
TelegramClient.edit_2fa
returns an invalid value when I pass an invalid password instead ofNone
as thecurrent_password
parameter.Steps to Reproduce:
TelegramClient.edit_2fa
, providing an invalid password instead ofNone
as thecurrent_password
parameter.Actual behavior
It should return False
Traceback
No response
Telethon version
1.38.1
Python version
3.11.9
Operating system (including distribution name and version)
Ubuntu 24.04
Other details
No response
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: