From c4d399e32dd21677fe9bf389f0a9e3160071a4da Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 16 Oct 2023 20:10:05 +0200 Subject: [PATCH] Add missing await in get_password_information --- client/src/telethon/_impl/client/client/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/telethon/_impl/client/client/auth.py b/client/src/telethon/_impl/client/client/auth.py index 4f2e3f52..60489e31 100644 --- a/client/src/telethon/_impl/client/client/auth.py +++ b/client/src/telethon/_impl/client/client/auth.py @@ -198,7 +198,7 @@ async def interactive_login( async def get_password_information(client: Client) -> PasswordToken: - result = client(functions.account.get_password()) + result = await client(functions.account.get_password()) assert isinstance(result, types.account.Password) return PasswordToken._new(result)