From 7f5d75a71c25cf974c771efe78bd325b7bf6a1bf Mon Sep 17 00:00:00 2001 From: Devesh Pal Date: Tue, 23 Jan 2024 00:38:42 +0530 Subject: [PATCH] Fix: qrcode while using user's profile --- plugins/qrcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/qrcode.py b/plugins/qrcode.py index 0503a1cd80..2e7d64ba90 100644 --- a/plugins/qrcode.py +++ b/plugins/qrcode.py @@ -44,7 +44,7 @@ async def cd(e): if reply and (reply.sticker or reply.photo): cimg = await reply.download_media() elif ultroid_bot.me.photo and not ultroid_bot.me.photo.has_video: - cimg = await e.client.get_profile_photos(ultroid_bot.uid, limit=1)[0] + cimg = (await e.client.get_profile_photos(ultroid_bot.uid, limit=1))[0] kk = await e.eor(get_string("com_1")) img = cimg or default