mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Add missing await in get_password_information
This commit is contained in:
@@ -198,7 +198,7 @@ async def interactive_login(
|
|||||||
|
|
||||||
|
|
||||||
async def get_password_information(client: Client) -> PasswordToken:
|
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)
|
assert isinstance(result, types.account.Password)
|
||||||
return PasswordToken._new(result)
|
return PasswordToken._new(result)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user