grammers icon indicating copy to clipboard operation
grammers copied to clipboard

Running the `dialogs` example with a 2FA password fails

Open haarts opened this issue 2 years ago • 2 comments

I'm trying to run the 'dialogs' example with cargo run --example dialogs. Everything works up until I enter my 2FA password, then the console outputs this (even the hint works! Cool):

Enter the password (hint look at your password manager): XXX
DEBUG [grammers_mtsender] enqueueing request auth.checkPassword to be serialized
DEBUG [grammers_mtsender] serialized request d18b4d16 (auth.checkPassword) with MsgId(7327155985945296712)
DEBUG [grammers_mtsender] sent request with MsgId(7327155985945296712)
DEBUG [grammers_mtsender] deserializing valid transport packet...
DEBUG [grammers_mtsender] got rpc error RpcError { code: 400, name: "PASSWORD_HASH_INVALID", value: None, caused_by: None } for request MsgId(7327155985945296712)
Error: InvalidPassword

Obviously, I checked my 2FA by using it in the Telegram app and that works as expected, so I'm sure my password is correct. I also printed the captured password back to the console, and that looks A-OK.

What else can I try?

haarts avatar Jan 23 '24 05:01 haarts