Closed masoudcom closed 5 years ago
verbose:
File "
Aw, too bad there's people actually interested in the feature. That makes me have less reasons to remove the function altogether. Although compatibility was enough reason to keep it. Telegram has probably changed things server-side and, although the library is using the right method, it's calculating it incorrectly. You see:
And if we look at the schema.tl
for the current layer:
So currently the library is stuck at layer 82 because layer 86 has added some new stuff regarding passwords… And I don't have enough interest in making it work myself. Technically, it's possible to read on how tdesktop
does it, and eventually we should do that.
TL; DR; would be nice if someone could invest some of their time into porting the new way of working with passwords to Telethon, from tdesktop
or any other implementation.
I suspect you set current_password
to some non-None
value. Please show us what your function call looked like
client.edit_2fa(new_password='mser', hint='Reg')
Thank you for the reply, however: Can not reproduce... Perhaps the method only works for people who have used it prior to the new layer? Side note: I am the one who made (well, ported) the original function in telethon and I apologize for not having the energy to implement the new one.
Closed since the new edit_2fa
exists and has been tested.
Hi. When use
edit_2fa
for first time, get errortelethon.errors.rpcerrorlist.PasswordHashInvalidError
! telethon version is : 1.3