From fa6a316ae611f4722ea7c0e79f664d548653c7ee Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 1 Feb 2023 13:36:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20hotfix:=20qrlogin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyromod/methods/sign_in_qrcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyromod/methods/sign_in_qrcode.py b/pyromod/methods/sign_in_qrcode.py index 531eb05..2b44842 100644 --- a/pyromod/methods/sign_in_qrcode.py +++ b/pyromod/methods/sign_in_qrcode.py @@ -38,9 +38,9 @@ async def sign_in_qrcode( ) await client.session.start() req = await client.invoke(pyrogram.raw.functions.auth.ImportLoginToken(token=req.token)) - await client.storage.user_id(req.user.id) + await client.storage.user_id(req.authorization.user.id) await client.storage.is_bot(False) - return pyrogram.types.User._parse(client, req.user) + return pyrogram.types.User._parse(client, req.authorization.user) elif isinstance(req, pyrogram.raw.types.auth.LoginTokenSuccess): await client.storage.user_id(req.authorization.user.id) await client.storage.is_bot(False)