Fix: qrcode while using user's profile

This commit is contained in:
Devesh Pal
2024-01-23 00:38:42 +05:30
committed by GitHub
parent 7b7cb6d56e
commit 7f5d75a71c

View File

@@ -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