Skip to content

Commit

Permalink
Fix: qrcode while using user's profile
Browse files Browse the repository at this point in the history
  • Loading branch information
New-dev0 committed Jan 22, 2024
1 parent 7b7cb6d commit 7f5d75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/qrcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f5d75a

Please sign in to comment.